stage4/generate_cc/search_type_code.c
author lbessard
Thu, 02 Aug 2007 16:56:56 +0200
changeset 49 c96d1a4c23f8
parent 42 b45c7f34dec1
permissions -rw-r--r--
Changing file headers
Modifying SFC generation
49
c96d1a4c23f8 Changing file headers
lbessard
parents: 42
diff changeset
     1
/*
c96d1a4c23f8 Changing file headers
lbessard
parents: 42
diff changeset
     2
 * (c) 2003 Mario de Sousa
c96d1a4c23f8 Changing file headers
lbessard
parents: 42
diff changeset
     3
 *
c96d1a4c23f8 Changing file headers
lbessard
parents: 42
diff changeset
     4
 * Offered to the public under the terms of the GNU General Public License
c96d1a4c23f8 Changing file headers
lbessard
parents: 42
diff changeset
     5
 * as published by the Free Software Foundation; either version 2 of the
c96d1a4c23f8 Changing file headers
lbessard
parents: 42
diff changeset
     6
 * License, or (at your option) any later version.
c96d1a4c23f8 Changing file headers
lbessard
parents: 42
diff changeset
     7
 *
c96d1a4c23f8 Changing file headers
lbessard
parents: 42
diff changeset
     8
 * This program is distributed in the hope that it will be useful, but
c96d1a4c23f8 Changing file headers
lbessard
parents: 42
diff changeset
     9
 * WITHOUT ANY WARRANTY; without even the implied warranty of
c96d1a4c23f8 Changing file headers
lbessard
parents: 42
diff changeset
    10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
c96d1a4c23f8 Changing file headers
lbessard
parents: 42
diff changeset
    11
 * Public License for more details.
c96d1a4c23f8 Changing file headers
lbessard
parents: 42
diff changeset
    12
 *
c96d1a4c23f8 Changing file headers
lbessard
parents: 42
diff changeset
    13
 * This code is made available on the understanding that it will not be
c96d1a4c23f8 Changing file headers
lbessard
parents: 42
diff changeset
    14
 * used in safety-critical situations without a full and competent review.
c96d1a4c23f8 Changing file headers
lbessard
parents: 42
diff changeset
    15
 */
c96d1a4c23f8 Changing file headers
lbessard
parents: 42
diff changeset
    16
c96d1a4c23f8 Changing file headers
lbessard
parents: 42
diff changeset
    17
/*
c96d1a4c23f8 Changing file headers
lbessard
parents: 42
diff changeset
    18
 * An IEC 61131-3 IL and ST compiler.
c96d1a4c23f8 Changing file headers
lbessard
parents: 42
diff changeset
    19
 *
c96d1a4c23f8 Changing file headers
lbessard
parents: 42
diff changeset
    20
 * Based on the
c96d1a4c23f8 Changing file headers
lbessard
parents: 42
diff changeset
    21
 * FINAL DRAFT - IEC 61131-3, 2nd Ed. (2001-12-10)
c96d1a4c23f8 Changing file headers
lbessard
parents: 42
diff changeset
    22
 *
c96d1a4c23f8 Changing file headers
lbessard
parents: 42
diff changeset
    23
 */
c96d1a4c23f8 Changing file headers
lbessard
parents: 42
diff changeset
    24
 
c96d1a4c23f8 Changing file headers
lbessard
parents: 42
diff changeset
    25
 
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
    26
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
    27
 * IEC 61131-3 standard function lib
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
    28
 * generated code, do not edit by hand
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
    29
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
    30
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
    31
void *compute_standard_function_st(function_invocation_c *symbol) {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
    32
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
    33
  function_type_t current_function_type = get_function_type((identifier_c *)symbol->function_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
    34
  function_call_param_iterator_c function_call_param_iterator(symbol);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
    35
  search_expression_type_c* search_expression_type = this;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
    36
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
    37
  switch(current_function_type){
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
    38
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
    39
/****
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
    40
 *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
    41
 */
873a5b60a7ea Fixed -I library 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
    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
    43
    {
873a5b60a7ea Fixed -I library 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
        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
    45
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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 = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
    52
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    54
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
    57
            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
    58
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
    61
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            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
    66
        }
873a5b60a7ea Fixed -I library 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
    }/*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
    69
    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
    70
873a5b60a7ea Fixed -I library 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
 *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
    73
 */
873a5b60a7ea Fixed -I library 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
    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
    75
    {
873a5b60a7ea Fixed -I library 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
        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
    77
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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 = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
    84
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    86
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
    89
            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
    90
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
    93
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            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
    98
        }
873a5b60a7ea Fixed -I library 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
    }/*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
   101
    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
   102
873a5b60a7ea Fixed -I library 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
 *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
   105
 */
873a5b60a7ea Fixed -I library 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
    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
   107
    {
873a5b60a7ea Fixed -I library 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
        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
   109
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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 = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
   116
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   118
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
   121
            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
   122
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
   125
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            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
   130
        }
873a5b60a7ea Fixed -I library 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
    }/*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
   133
    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
   134
873a5b60a7ea Fixed -I library 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
 *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
   137
 */
873a5b60a7ea Fixed -I library 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
    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
   139
    {
873a5b60a7ea Fixed -I library 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
        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
   141
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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 = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
   148
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   150
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
   153
            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
   154
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
   157
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            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
   162
        }
873a5b60a7ea Fixed -I library 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
    }/*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
   165
    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
   166
873a5b60a7ea Fixed -I library 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
 *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
   169
 */
873a5b60a7ea Fixed -I library 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
    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
   171
    {
873a5b60a7ea Fixed -I library 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
        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
   173
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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 = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
   180
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   182
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
   185
            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
   186
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
   189
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            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
   194
        }
873a5b60a7ea Fixed -I library 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
    }/*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
   197
    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
   198
873a5b60a7ea Fixed -I library 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
 *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
   201
 */
873a5b60a7ea Fixed -I library 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
    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
   203
    {
873a5b60a7ea Fixed -I library 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
        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
   205
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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 = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
   212
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   214
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
   217
            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
   218
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
   221
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            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
   226
        }
873a5b60a7ea Fixed -I library 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
    }/*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
   229
    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
   230
873a5b60a7ea Fixed -I library 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
 *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
   233
 */
873a5b60a7ea Fixed -I library 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
    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
   235
    {
873a5b60a7ea Fixed -I library 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
        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
   237
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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 = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
   244
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   246
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
   249
            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
   250
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
   253
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            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
   258
        }
873a5b60a7ea Fixed -I library 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
    }/*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
   261
    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
   262
873a5b60a7ea Fixed -I library 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
 *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
   265
 */
873a5b60a7ea Fixed -I library 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
    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
   267
    {
873a5b60a7ea Fixed -I library 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
        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
   269
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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 = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
   276
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   278
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
   281
            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
   282
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
   285
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            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
   290
        }
873a5b60a7ea Fixed -I library 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
    }/*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
   293
    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
   294
873a5b60a7ea Fixed -I library 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
 *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
   297
 */
873a5b60a7ea Fixed -I library 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
    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
   299
    {
873a5b60a7ea Fixed -I library 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
        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
   301
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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 = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
   308
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   310
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
   313
            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
   314
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
   317
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            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
   322
        }
873a5b60a7ea Fixed -I library 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
    }/*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
   325
    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
   326
873a5b60a7ea Fixed -I library 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
 *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
   329
 */
873a5b60a7ea Fixed -I library 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
    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
   331
    {
873a5b60a7ea Fixed -I library 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
        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
   333
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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 = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
   340
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   342
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
   345
            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
   346
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
   349
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
   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
        
873a5b60a7ea Fixed -I library 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
    }/*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
   357
    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
   358
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
   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
    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
   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
        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
   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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
   369
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
   372
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   375
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
   377
            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
   378
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
   381
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
   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
    }/*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
   389
    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
   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
/****
873a5b60a7ea Fixed -I library 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
 *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
   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
    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
   395
    {
873a5b60a7ea Fixed -I library 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
        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
   397
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
   401
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
   404
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   408
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
   409
            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
   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
        
873a5b60a7ea Fixed -I library 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
                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
   413
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
   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
    }/*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
   421
    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
   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
 *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
 */
873a5b60a7ea Fixed -I library 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
    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
   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
        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
   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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
   433
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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_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
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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 = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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 = 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 ;
873a5b60a7ea Fixed -I library 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: 40
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::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
   445
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
   450
        }
873a5b60a7ea Fixed -I library 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
    }/*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
   453
    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
   454
873a5b60a7ea Fixed -I library 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
 *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
   457
 */
873a5b60a7ea Fixed -I library 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
    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
   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
        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
   461
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
   465
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
   468
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
   473
            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
   474
            {
873a5b60a7ea Fixed -I library 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
                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
   477
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
   482
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
   485
    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
   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
/****
873a5b60a7ea Fixed -I library 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
 *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
   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
    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
   491
    {
873a5b60a7ea Fixed -I library 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
        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
   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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
   497
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
   500
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
   505
            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
   506
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   507
        
873a5b60a7ea Fixed -I library 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
                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
   509
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
   514
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
   517
    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
   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
/****
873a5b60a7ea Fixed -I library 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
 *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
   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
    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
   523
    {
873a5b60a7ea Fixed -I library 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
        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
   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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
   529
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
   532
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
   537
            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
   538
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   539
        
873a5b60a7ea Fixed -I library 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
                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
   541
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
   546
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
   549
    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
   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
/****
873a5b60a7ea Fixed -I library 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
 *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
   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
    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
   555
    {
873a5b60a7ea Fixed -I library 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
        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
   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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
   561
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
   564
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
   569
            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
   570
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   571
        
873a5b60a7ea Fixed -I library 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
                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
   573
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
   578
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
   581
    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
   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
/****
873a5b60a7ea Fixed -I library 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
 *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
   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
    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
   587
    {
873a5b60a7ea Fixed -I library 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
        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
   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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
   593
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
   596
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
   601
            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
   602
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   603
        
873a5b60a7ea Fixed -I library 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
                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
   605
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
   610
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
   613
    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
   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
/****
873a5b60a7ea Fixed -I library 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
 *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
   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
    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
   619
    {
873a5b60a7ea Fixed -I library 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
        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
   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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
   625
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
   628
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
   633
            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
   634
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   635
        
873a5b60a7ea Fixed -I library 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
                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
   637
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
   642
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
   645
    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
   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
/****
873a5b60a7ea Fixed -I library 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
 *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
   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
    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
   651
    {
873a5b60a7ea Fixed -I library 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
        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
   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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
   657
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
   660
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
   665
            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
   666
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   667
        
873a5b60a7ea Fixed -I library 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
                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
   669
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
   674
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
   677
    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
   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
/****
873a5b60a7ea Fixed -I library 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
 *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
   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
    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
   683
    {
873a5b60a7ea Fixed -I library 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
        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
   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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
   689
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
   692
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
   697
            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
   698
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   699
        
873a5b60a7ea Fixed -I library 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
                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
   701
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
   706
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
   709
    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
   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
/****
873a5b60a7ea Fixed -I library 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
 *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
   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
    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
   715
    {
873a5b60a7ea Fixed -I library 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
        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
   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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
   721
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
   724
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
   729
            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
   730
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   731
        
873a5b60a7ea Fixed -I library 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
                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
   733
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
   738
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
   741
    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
   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
/****
873a5b60a7ea Fixed -I library 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
 *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
   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
    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
   747
    {
873a5b60a7ea Fixed -I library 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
        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
   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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
   753
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
   756
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
   761
            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
   762
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   763
        
873a5b60a7ea Fixed -I library 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
                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
   765
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
   770
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
   773
    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
   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
/****
873a5b60a7ea Fixed -I library 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
 *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
   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
    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
   779
    {
873a5b60a7ea Fixed -I library 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
        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
   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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
   785
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
   788
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
   793
            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
   794
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   795
        
873a5b60a7ea Fixed -I library 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
                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
   797
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
   802
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
   805
    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
   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
/****
873a5b60a7ea Fixed -I library 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
 *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
   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
    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
   811
    {
873a5b60a7ea Fixed -I library 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
        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
   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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
   817
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
   820
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
   825
            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
   826
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   827
        
873a5b60a7ea Fixed -I library 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
                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
   829
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
   834
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
   837
    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
   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
/****
873a5b60a7ea Fixed -I library 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
 *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
   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
    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
   843
    {
873a5b60a7ea Fixed -I library 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
        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
   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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
   849
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
   852
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
   857
            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
   858
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   859
        
873a5b60a7ea Fixed -I library 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
                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
   861
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
   866
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
   869
    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
   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
/****
873a5b60a7ea Fixed -I library 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
 *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
   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
    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
   875
    {
873a5b60a7ea Fixed -I library 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
        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
   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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
   881
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
   884
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
   889
            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
   890
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   891
        
873a5b60a7ea Fixed -I library 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
                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
   893
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
   898
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
   901
    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
   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
/****
873a5b60a7ea Fixed -I library 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
 *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
   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
    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
   907
    {
873a5b60a7ea Fixed -I library 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
        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
   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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
   913
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
   916
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
   921
            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
   922
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   923
        
873a5b60a7ea Fixed -I library 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
                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
   925
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
   930
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
   933
    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
   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
/****
873a5b60a7ea Fixed -I library 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
 *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
   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
    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
   939
    {
873a5b60a7ea Fixed -I library 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
        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
   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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
   945
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
   948
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
   953
            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
   954
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   955
        
873a5b60a7ea Fixed -I library 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
                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
   957
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
   962
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
   965
    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
   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
 *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
   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
    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
   971
    {
873a5b60a7ea Fixed -I library 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
        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
   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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
   977
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
   980
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
   985
            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
   986
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   988
                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
   989
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
   994
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
   997
    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
   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
 *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
  1001
 */
873a5b60a7ea Fixed -I library 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
    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
  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
        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
  1005
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1009
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1012
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1017
            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
  1018
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  1021
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  1026
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  1029
    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
  1030
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  1037
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1041
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1044
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1049
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  1053
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1054
                
873a5b60a7ea Fixed -I library 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
            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
  1058
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  1061
    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
  1062
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  1067
    {
873a5b60a7ea Fixed -I library 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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1073
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1076
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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 *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1081
            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
  1082
            {
873a5b60a7ea Fixed -I library 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 * 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
  1085
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1087
            }
873a5b60a7ea Fixed -I library 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
            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
  1090
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  1093
    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
  1094
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1105
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1108
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1113
            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
  1114
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  1117
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1120
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  1125
    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
  1126
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1137
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1140
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1145
            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
  1146
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  1149
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1152
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  1157
    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
  1158
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1169
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1172
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1177
            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
  1178
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  1181
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1184
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  1189
    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
  1190
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1201
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1204
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1209
            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
  1210
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  1213
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1216
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  1221
    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
  1222
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1233
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1236
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1241
            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
  1242
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  1245
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1248
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  1253
    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
  1254
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1265
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1268
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1273
            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
  1274
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  1277
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1280
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  1285
    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
  1286
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1297
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1300
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1305
            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
  1306
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  1309
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1312
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  1317
    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
  1318
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1329
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1332
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1337
            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
  1338
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  1341
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1344
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  1349
    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
  1350
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1361
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1364
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1369
            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
  1370
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  1373
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1376
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  1381
    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
  1382
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1393
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1396
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1401
            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
  1402
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  1405
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1408
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  1413
    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
  1414
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1425
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1428
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1433
            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
  1434
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  1437
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1440
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  1445
    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
  1446
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1457
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1460
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1465
            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
  1466
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  1469
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1472
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  1477
    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
  1478
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1489
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1492
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1497
            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
  1498
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  1501
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1504
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  1509
    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
  1510
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1521
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1524
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1529
            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
  1530
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  1533
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1536
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  1541
    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
  1542
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1553
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1556
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1561
            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
  1562
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  1565
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1568
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  1573
    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
  1574
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  1577
 */
873a5b60a7ea Fixed -I library 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
    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
  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
        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
  1581
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1585
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1588
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1593
            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
  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
        
873a5b60a7ea Fixed -I library 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 * 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
  1597
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1601
            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
  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
    }/*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
  1605
    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
  1606
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  1609
 */
873a5b60a7ea Fixed -I library 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
    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
  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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1617
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1620
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1625
            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
  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
                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
  1629
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  1634
        }
873a5b60a7ea Fixed -I library 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
    }/*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
  1637
    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
  1638
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  1641
 */
873a5b60a7ea Fixed -I library 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
    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
  1643
    {
873a5b60a7ea Fixed -I library 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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1649
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1652
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1657
            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
  1658
            {
873a5b60a7ea Fixed -I library 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
                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
  1661
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  1666
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1667
        
873a5b60a7ea Fixed -I library 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
    }/*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
  1669
    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
  1670
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  1673
 */
873a5b60a7ea Fixed -I library 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
    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
  1675
    {
873a5b60a7ea Fixed -I library 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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1681
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1684
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1689
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  1693
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  1698
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1700
    }/*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
  1701
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  1705
 */
873a5b60a7ea Fixed -I library 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
    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
  1707
    {
873a5b60a7ea Fixed -I library 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
        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
  1709
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1713
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1716
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1721
            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
  1722
            {
873a5b60a7ea Fixed -I library 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 * 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
  1725
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  1730
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  1733
    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
  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
 *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
  1737
 */
873a5b60a7ea Fixed -I library 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
    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
  1739
    {
873a5b60a7ea Fixed -I library 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
        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
  1741
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1745
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1748
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1753
            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
  1754
            {
873a5b60a7ea Fixed -I library 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 * 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
  1757
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  1762
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  1765
    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
  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
 *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
  1769
 */
873a5b60a7ea Fixed -I library 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
    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
  1771
    {
873a5b60a7ea Fixed -I library 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
        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
  1773
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1777
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1780
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1785
            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
  1786
            {
873a5b60a7ea Fixed -I library 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 * 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
  1789
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  1794
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  1797
    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
  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
 *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
  1801
 */
873a5b60a7ea Fixed -I library 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
    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
  1803
    {
873a5b60a7ea Fixed -I library 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
        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
  1805
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1809
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1812
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1817
            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
  1818
            {
873a5b60a7ea Fixed -I library 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 * 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
  1821
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  1826
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  1829
    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
  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
 *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
  1833
 */
873a5b60a7ea Fixed -I library 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
    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
  1835
    {
873a5b60a7ea Fixed -I library 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
        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
  1837
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1841
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1844
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1849
            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
  1850
            {
873a5b60a7ea Fixed -I library 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 * 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
  1853
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  1858
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  1861
    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
  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
 *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
  1865
 */
873a5b60a7ea Fixed -I library 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
    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
  1867
    {
873a5b60a7ea Fixed -I library 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
        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
  1869
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1873
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1876
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1881
            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
  1882
            {
873a5b60a7ea Fixed -I library 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 * 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
  1885
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  1890
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  1893
    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
  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
 *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
  1897
 */
873a5b60a7ea Fixed -I library 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
    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
  1899
    {
873a5b60a7ea Fixed -I library 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
        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
  1901
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1905
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1908
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1913
            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
  1914
            {
873a5b60a7ea Fixed -I library 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 * 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
  1917
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  1922
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  1925
    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
  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
 *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
  1929
 */
873a5b60a7ea Fixed -I library 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
    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
  1931
    {
873a5b60a7ea Fixed -I library 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
        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
  1933
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1937
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1940
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1945
            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
  1946
            {
873a5b60a7ea Fixed -I library 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 * 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
  1949
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  1954
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  1957
    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
  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
 *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
  1961
 */
873a5b60a7ea Fixed -I library 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
    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
  1963
    {
873a5b60a7ea Fixed -I library 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
        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
  1965
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  1969
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  1972
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  1977
            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
  1978
            {
873a5b60a7ea Fixed -I library 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 * 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
  1981
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  1986
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  1989
    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
  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
 *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
  1993
 */
873a5b60a7ea Fixed -I library 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
    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
  1995
    {
873a5b60a7ea Fixed -I library 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
        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
  1997
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2001
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2004
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2009
            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
  2010
            {
873a5b60a7ea Fixed -I library 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 * 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
  2013
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  2018
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  2021
    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
  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
 *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
  2025
 */
873a5b60a7ea Fixed -I library 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
    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
  2027
    {
873a5b60a7ea Fixed -I library 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
        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
  2029
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2033
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2036
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2041
            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
  2042
            {
873a5b60a7ea Fixed -I library 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 * 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
  2045
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  2050
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  2053
    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
  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
 *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
  2057
 */
873a5b60a7ea Fixed -I library 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
    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
  2059
    {
873a5b60a7ea Fixed -I library 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
        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
  2061
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2065
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2068
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2073
            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
  2074
            {
873a5b60a7ea Fixed -I library 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 * 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
  2077
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  2082
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  2085
    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
  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
 *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
  2089
 */
873a5b60a7ea Fixed -I library 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
    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
  2091
    {
873a5b60a7ea Fixed -I library 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
        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
  2093
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2097
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2100
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2105
            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
  2106
            {
873a5b60a7ea Fixed -I library 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 * 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
  2109
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  2114
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  2117
    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
  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
 *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
  2121
 */
873a5b60a7ea Fixed -I library 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
    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
  2123
    {
873a5b60a7ea Fixed -I library 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
        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
  2125
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2129
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2132
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2137
            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
  2138
            {
873a5b60a7ea Fixed -I library 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 * 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
  2141
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  2146
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  2149
    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
  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
 *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
  2153
 */
873a5b60a7ea Fixed -I library 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
    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
  2155
    {
873a5b60a7ea Fixed -I library 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
        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
  2157
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2161
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2164
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2169
            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
  2170
            {
873a5b60a7ea Fixed -I library 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 * 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
  2173
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  2178
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  2181
    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
  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
 *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
  2185
 */
873a5b60a7ea Fixed -I library 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
    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
  2187
    {
873a5b60a7ea Fixed -I library 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
        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
  2189
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2193
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2196
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2201
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  2205
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  2213
    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
  2214
873a5b60a7ea Fixed -I library 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
 *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
  2217
 */
873a5b60a7ea Fixed -I library 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
    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
  2219
    {
873a5b60a7ea Fixed -I library 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
        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
  2221
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2225
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2228
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2233
            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
  2234
            {
873a5b60a7ea Fixed -I library 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
                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
  2237
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            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
  2242
        }
873a5b60a7ea Fixed -I library 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
    }/*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
  2245
    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
  2246
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2247
/****
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  2251
    {
873a5b60a7ea Fixed -I library 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
        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
  2253
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2257
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2260
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2265
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  2269
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  2274
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  2277
    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
  2278
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2280
 *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
  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
    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
  2283
    {
873a5b60a7ea Fixed -I library 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
        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
  2285
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2289
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2292
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2297
            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
  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
                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
  2301
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  2309
    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
  2310
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  2313
 */
873a5b60a7ea Fixed -I library 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
    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
  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 *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
  2317
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2321
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2324
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2329
            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
  2330
            {
873a5b60a7ea Fixed -I library 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
                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
  2333
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  2341
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  2345
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2346
    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
  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
        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
  2349
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2353
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2356
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2361
            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
  2362
            {
873a5b60a7ea Fixed -I library 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
                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
  2365
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  2373
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  2377
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2378
    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
  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
        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
  2381
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2385
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2388
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2393
            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
  2394
            {
873a5b60a7ea Fixed -I library 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
                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
  2397
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  2405
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  2409
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2410
    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
  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
        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
  2413
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2417
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2420
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2425
            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
  2426
            {
873a5b60a7ea Fixed -I library 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
                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
  2429
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  2437
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  2441
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2442
    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
  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
        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
  2445
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2449
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2452
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2457
            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
  2458
            {
873a5b60a7ea Fixed -I library 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
                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
  2461
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  2469
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  2473
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2474
    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
  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
        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
  2477
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2481
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2484
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2489
            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
  2490
            {
873a5b60a7ea Fixed -I library 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
                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
  2493
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  2501
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  2505
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2506
    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
  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
        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
  2509
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2513
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2516
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2521
            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
  2522
            {
873a5b60a7ea Fixed -I library 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
                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
  2525
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  2533
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  2537
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2538
    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
  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
        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
  2541
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2545
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2548
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2553
            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
  2554
            {
873a5b60a7ea Fixed -I library 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
                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
  2557
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  2565
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  2569
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2570
    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
  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
        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
  2573
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2577
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2580
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2585
            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
  2586
            {
873a5b60a7ea Fixed -I library 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
                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
  2589
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  2597
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  2601
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2602
    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
  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
        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
  2605
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2609
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2612
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2617
            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
  2618
            {
873a5b60a7ea Fixed -I library 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
                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
  2621
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  2629
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  2633
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2634
    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
  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
        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
  2637
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2641
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2644
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2649
            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
  2650
            {
873a5b60a7ea Fixed -I library 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
                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
  2653
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  2661
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  2665
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2666
    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
  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
        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
  2669
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2673
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2676
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2681
            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
  2682
            {
873a5b60a7ea Fixed -I library 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
                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
  2685
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  2693
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  2697
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2698
    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
  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
        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
  2701
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2705
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2708
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2713
            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
  2714
            {
873a5b60a7ea Fixed -I library 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
                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
  2717
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  2725
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  2729
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2730
    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
  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
        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
  2733
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2737
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2740
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2745
            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
  2746
            {
873a5b60a7ea Fixed -I library 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
                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
  2749
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  2757
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  2761
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2762
    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
  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
        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
  2765
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2769
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2772
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2777
            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
  2778
            {
873a5b60a7ea Fixed -I library 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
                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
  2781
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  2789
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  2793
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2794
    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
  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
        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
  2797
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2801
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2804
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2809
            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
  2810
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  2813
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  2818
        }
873a5b60a7ea Fixed -I library 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
    }/*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
  2821
    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
  2822
873a5b60a7ea Fixed -I library 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
 *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
  2825
 */
873a5b60a7ea Fixed -I library 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
    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
  2827
    {
873a5b60a7ea Fixed -I library 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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2833
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2836
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2841
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  2845
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  2853
    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
  2854
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  2857
 */
873a5b60a7ea Fixed -I library 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
    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
  2859
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2860
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2865
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2868
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2873
            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
  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
                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
  2877
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  2882
        }
873a5b60a7ea Fixed -I library 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
    }/*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
  2885
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  2891
    {
873a5b60a7ea Fixed -I library 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
        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
  2893
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2897
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2900
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2905
            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
  2906
            {
873a5b60a7ea Fixed -I library 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
                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
  2909
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  2917
    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
  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
 *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
  2921
 */
873a5b60a7ea Fixed -I library 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
    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
  2923
    {
873a5b60a7ea Fixed -I library 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
        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
  2925
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2926
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2929
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2932
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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 = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2937
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  2941
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  2946
        }
873a5b60a7ea Fixed -I library 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
    }/*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
  2949
    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
  2950
873a5b60a7ea Fixed -I library 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
 *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
  2953
 */
873a5b60a7ea Fixed -I library 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
    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
  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 *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
  2957
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2959
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2961
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2964
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  2969
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  2973
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  2978
        }
873a5b60a7ea Fixed -I library 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
    }/*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
  2981
    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
  2982
873a5b60a7ea Fixed -I library 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
 *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
  2985
 */
873a5b60a7ea Fixed -I library 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
    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
  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 *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
  2989
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2991
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  2993
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  2996
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3001
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  3005
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  3010
        }
873a5b60a7ea Fixed -I library 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
    }/*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
  3013
    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
  3014
873a5b60a7ea Fixed -I library 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
 *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
  3017
 */
873a5b60a7ea Fixed -I library 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
    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
  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 *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
  3021
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3023
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  3025
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  3028
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3033
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  3037
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  3042
        }
873a5b60a7ea Fixed -I library 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
    }/*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
  3045
    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
  3046
873a5b60a7ea Fixed -I library 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
 *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
  3049
 */
873a5b60a7ea Fixed -I library 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
    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
  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 *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
  3053
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3055
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  3057
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  3060
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3065
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  3069
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  3074
        }
873a5b60a7ea Fixed -I library 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
    }/*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
  3077
    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
  3078
873a5b60a7ea Fixed -I library 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
 *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
  3081
 */
873a5b60a7ea Fixed -I library 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
    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
  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 *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
  3085
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3087
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  3089
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  3092
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3097
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  3101
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  3106
        }
873a5b60a7ea Fixed -I library 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
    }/*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
  3109
    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
  3110
873a5b60a7ea Fixed -I library 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
 *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
  3113
 */
873a5b60a7ea Fixed -I library 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
    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
  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 *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
  3117
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3119
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  3121
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  3124
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3129
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  3133
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  3138
        }
873a5b60a7ea Fixed -I library 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
    }/*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
  3141
    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
  3142
873a5b60a7ea Fixed -I library 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
 *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
  3145
 */
873a5b60a7ea Fixed -I library 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
    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
  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 *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
  3149
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3151
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  3153
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  3156
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3161
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  3165
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  3170
        }
873a5b60a7ea Fixed -I library 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
    }/*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
  3173
    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
  3174
873a5b60a7ea Fixed -I library 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
 *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
  3177
 */
873a5b60a7ea Fixed -I library 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
    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
  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 *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
  3181
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3183
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  3185
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  3188
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3193
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  3197
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  3202
        }
873a5b60a7ea Fixed -I library 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
    }/*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
  3205
    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
  3206
873a5b60a7ea Fixed -I library 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
 *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
  3209
 */
873a5b60a7ea Fixed -I library 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
    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
  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 *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
  3213
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3215
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  3217
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  3220
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3225
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  3229
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  3234
        }
873a5b60a7ea Fixed -I library 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
    }/*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
  3237
    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
  3238
873a5b60a7ea Fixed -I library 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
 *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
  3241
 */
873a5b60a7ea Fixed -I library 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
    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
  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 *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
  3245
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3247
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  3249
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  3252
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3257
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  3261
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  3266
        }
873a5b60a7ea Fixed -I library 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
    }/*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
  3269
    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
  3270
873a5b60a7ea Fixed -I library 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
 *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
  3273
 */
873a5b60a7ea Fixed -I library 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
    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
  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 *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
  3277
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3279
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  3281
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  3284
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3289
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  3293
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  3298
        }
873a5b60a7ea Fixed -I library 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
    }/*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
  3301
    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
  3302
873a5b60a7ea Fixed -I library 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
 *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
  3305
 */
873a5b60a7ea Fixed -I library 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
    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
  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 *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
  3309
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3311
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  3313
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  3316
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3321
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  3325
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  3330
        }
873a5b60a7ea Fixed -I library 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
    }/*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
  3333
    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
  3334
873a5b60a7ea Fixed -I library 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
 *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
  3337
 */
873a5b60a7ea Fixed -I library 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
    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
  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 *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
  3341
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3343
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  3345
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  3348
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3353
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  3357
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  3362
        }
873a5b60a7ea Fixed -I library 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
    }/*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
  3365
    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
  3366
873a5b60a7ea Fixed -I library 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
 *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
  3369
 */
873a5b60a7ea Fixed -I library 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
    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
  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 *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
  3373
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3375
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  3377
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  3380
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3385
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  3389
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  3394
        }
873a5b60a7ea Fixed -I library 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
    }/*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
  3397
    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
  3398
873a5b60a7ea Fixed -I library 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
 *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
  3401
 */
873a5b60a7ea Fixed -I library 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
    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
  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 *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
  3405
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3407
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  3409
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  3412
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3417
            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
  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
                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
  3421
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  3429
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  3435
    {
873a5b60a7ea Fixed -I library 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
        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
  3437
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3440
            /* 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
  3441
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  3444
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3449
            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
  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
                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
  3453
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  3461
    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
  3462
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  3467
    {
873a5b60a7ea Fixed -I library 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 *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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  3473
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  3476
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3481
            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
  3482
            {
873a5b60a7ea Fixed -I library 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
                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
  3485
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            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
  3490
        }
873a5b60a7ea Fixed -I library 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
    }/*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
  3493
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  3497
 */
873a5b60a7ea Fixed -I library 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
    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
  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
        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
  3501
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  3505
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3506
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  3508
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3513
            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
  3514
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  3517
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  3522
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  3525
    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
  3526
873a5b60a7ea Fixed -I library 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
 *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
    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
  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
        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
  3533
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  3537
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3539
            /* Get the value from a foo(<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
  3540
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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 *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3545
            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
  3546
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  3549
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  3557
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  3561
 */
873a5b60a7ea Fixed -I library 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
    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
  3563
    {
873a5b60a7ea Fixed -I library 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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  3569
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  3572
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3577
            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
  3578
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  3581
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  3589
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  3593
 */
873a5b60a7ea Fixed -I library 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
    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
  3595
    {
873a5b60a7ea Fixed -I library 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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  3601
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  3604
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3609
            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
  3610
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  3613
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  3621
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  3625
 */
873a5b60a7ea Fixed -I library 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
    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
  3627
    {
873a5b60a7ea Fixed -I library 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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  3633
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  3636
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3641
            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
  3642
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  3645
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  3653
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  3657
 */
873a5b60a7ea Fixed -I library 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
    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
  3659
    {
873a5b60a7ea Fixed -I library 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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  3665
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  3668
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3673
            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
  3674
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  3677
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  3685
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  3689
 */
873a5b60a7ea Fixed -I library 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
    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
  3691
    {
873a5b60a7ea Fixed -I library 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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  3697
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  3700
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3705
            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
  3706
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  3709
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  3717
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  3721
 */
873a5b60a7ea Fixed -I library 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
    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
  3723
    {
873a5b60a7ea Fixed -I library 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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  3729
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  3732
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3737
            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
  3738
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  3741
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  3749
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  3753
 */
873a5b60a7ea Fixed -I library 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
    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
  3755
    {
873a5b60a7ea Fixed -I library 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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  3761
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  3764
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3769
            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
  3770
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  3773
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  3781
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  3785
 */
873a5b60a7ea Fixed -I library 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
    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
  3787
    {
873a5b60a7ea Fixed -I library 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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  3793
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  3796
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3801
            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
  3802
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  3805
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  3813
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  3817
 */
873a5b60a7ea Fixed -I library 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
    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
  3819
    {
873a5b60a7ea Fixed -I library 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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  3825
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  3828
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3833
            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
  3834
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  3837
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  3845
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  3849
 */
873a5b60a7ea Fixed -I library 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
    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
  3851
    {
873a5b60a7ea Fixed -I library 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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  3857
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  3860
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3865
            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
  3866
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  3869
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  3877
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  3881
 */
873a5b60a7ea Fixed -I library 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
    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
  3883
    {
873a5b60a7ea Fixed -I library 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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  3889
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  3892
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3897
            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
  3898
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  3901
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  3909
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  3913
 */
873a5b60a7ea Fixed -I library 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
    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
  3915
    {
873a5b60a7ea Fixed -I library 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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  3921
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  3924
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3929
            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
  3930
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  3933
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  3941
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  3945
 */
873a5b60a7ea Fixed -I library 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
    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
  3947
    {
873a5b60a7ea Fixed -I library 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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  3953
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  3956
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3961
            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
  3962
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  3965
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  3973
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  3977
 */
873a5b60a7ea Fixed -I library 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
    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
  3979
    {
873a5b60a7ea Fixed -I library 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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  3985
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  3988
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  3993
            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
  3994
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  3997
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  4005
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  4009
 */
873a5b60a7ea Fixed -I library 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
    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
  4011
    {
873a5b60a7ea Fixed -I library 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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  4017
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  4020
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  4025
            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
  4026
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  4029
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  4049
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  4052
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4053
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  4057
            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
  4058
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  4061
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            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
  4066
        }
873a5b60a7ea Fixed -I library 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
    }/*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
  4069
    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
  4070
873a5b60a7ea Fixed -I library 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
 *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
  4073
 */
873a5b60a7ea Fixed -I library 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
    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
  4075
    {
873a5b60a7ea Fixed -I library 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
        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
  4077
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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 = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  4084
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4086
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  4089
            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
  4090
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  4093
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  4101
    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
  4102
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  4113
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  4116
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4119
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  4121
            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
  4122
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  4125
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  4133
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  4139
    {
873a5b60a7ea Fixed -I library 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
        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
  4141
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  4145
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  4148
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4152
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  4153
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  4157
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  4165
    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
  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
 *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
  4169
 */
873a5b60a7ea Fixed -I library 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
    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
  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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  4177
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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_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
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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 = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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 = 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 ;
873a5b60a7ea Fixed -I library 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: 40
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
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  4197
    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
  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
 *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
  4201
 */
873a5b60a7ea Fixed -I library 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
    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
  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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  4209
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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_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
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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 = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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 = 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 ;
873a5b60a7ea Fixed -I library 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: 40
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
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  4229
    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
  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
 *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
  4233
 */
873a5b60a7ea Fixed -I library 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
    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
  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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  4241
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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_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
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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 = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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 = 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 ;
873a5b60a7ea Fixed -I library 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: 40
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
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  4261
    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
  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
 *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
  4265
 */
873a5b60a7ea Fixed -I library 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
    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
  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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  4273
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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_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
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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 = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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 = 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 ;
873a5b60a7ea Fixed -I library 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: 40
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
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  4293
    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
  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
 *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
  4297
 */
873a5b60a7ea Fixed -I library 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
    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
  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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  4305
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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_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
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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 = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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 = 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 ;
873a5b60a7ea Fixed -I library 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: 40
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
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  4325
    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
  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
 *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
  4329
 */
873a5b60a7ea Fixed -I library 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
    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
  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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  4337
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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_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
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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 = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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 = 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 ;
873a5b60a7ea Fixed -I library 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: 40
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
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  4357
    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
  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
 *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
  4361
 */
873a5b60a7ea Fixed -I library 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
    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
  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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  4369
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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_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
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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 = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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 = 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 ;
873a5b60a7ea Fixed -I library 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: 40
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
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  4389
    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
  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
 *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
  4393
 */
873a5b60a7ea Fixed -I library 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
    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
  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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  4401
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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_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
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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 = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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 = 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 ;
873a5b60a7ea Fixed -I library 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: 40
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
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  4421
    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
  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
 *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
  4425
 */
873a5b60a7ea Fixed -I library 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
    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
  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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  4433
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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_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
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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 = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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 = 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 ;
873a5b60a7ea Fixed -I library 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: 40
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
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  4453
    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
  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
 *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
  4457
 */
873a5b60a7ea Fixed -I library 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
    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
  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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  4465
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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_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
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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 = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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 = 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 ;
873a5b60a7ea Fixed -I library 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: 40
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
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  4485
    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
  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
 *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
  4489
 */
873a5b60a7ea Fixed -I library 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
    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
  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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  4497
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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_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
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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 = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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 = 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 ;
873a5b60a7ea Fixed -I library 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: 40
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
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  4517
    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
  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
 *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
  4521
 */
873a5b60a7ea Fixed -I library 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
    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
  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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  4529
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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_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
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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 = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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 = 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 ;
873a5b60a7ea Fixed -I library 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: 40
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
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  4549
    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
  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
 *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
  4553
 */
873a5b60a7ea Fixed -I library 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
    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
  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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  4561
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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_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
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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 = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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 = 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 ;
873a5b60a7ea Fixed -I library 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: 40
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
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  4581
    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
  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
 *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
  4585
 */
873a5b60a7ea Fixed -I library 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
    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
  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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  4593
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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_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
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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 = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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 = 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 ;
873a5b60a7ea Fixed -I library 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: 40
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
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  4613
    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
  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
 *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
  4617
 */
873a5b60a7ea Fixed -I library 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
    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
  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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  4625
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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_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
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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 = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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 = 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 ;
873a5b60a7ea Fixed -I library 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: 40
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
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  4642
        }
873a5b60a7ea Fixed -I library 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
    }/*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
  4645
    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
  4646
873a5b60a7ea Fixed -I library 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
 *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
  4649
 */
873a5b60a7ea Fixed -I library 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
    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
  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
        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
  4653
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  4657
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  4660
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  4665
            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
  4666
            {
873a5b60a7ea Fixed -I library 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
                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
  4669
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  4674
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  4677
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  4683
    {
873a5b60a7ea Fixed -I library 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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  4689
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  4692
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  4697
            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
  4698
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4699
        
873a5b60a7ea Fixed -I library 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
                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
  4701
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  4706
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  4709
    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
  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
 *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
  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
    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
  4715
    {
873a5b60a7ea Fixed -I library 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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  4721
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  4724
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  4729
            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
  4730
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4732
                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
  4733
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  4738
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  4741
    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
  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
 *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
  4745
 */
873a5b60a7ea Fixed -I library 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
    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
  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
        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
  4749
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  4753
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  4756
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  4761
            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
  4762
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  4765
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  4770
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  4773
    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
  4774
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  4781
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  4785
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  4788
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  4793
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  4797
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4798
                
873a5b60a7ea Fixed -I library 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
            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
  4802
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  4805
    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
  4806
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  4813
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  4817
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  4820
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  4825
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  4829
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4830
                
873a5b60a7ea Fixed -I library 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
            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
  4834
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  4837
    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
  4838
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  4845
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  4849
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  4852
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  4857
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  4861
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4862
                
873a5b60a7ea Fixed -I library 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
            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
  4866
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  4869
    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
  4870
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  4877
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  4881
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  4884
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  4889
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  4893
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4894
                
873a5b60a7ea Fixed -I library 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
            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
  4898
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  4901
    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
  4902
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  4909
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  4913
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  4916
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  4921
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  4925
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4926
                
873a5b60a7ea Fixed -I library 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
            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
  4930
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  4933
    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
  4934
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  4941
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  4945
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  4948
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  4953
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  4957
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4958
                
873a5b60a7ea Fixed -I library 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
            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
  4962
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  4965
    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
  4966
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  4973
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  4977
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  4980
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  4985
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  4989
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4990
                
873a5b60a7ea Fixed -I library 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
            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
  4994
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  4997
    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
  4998
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  5005
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  5009
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  5012
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5017
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  5021
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5022
                
873a5b60a7ea Fixed -I library 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
            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
  5026
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  5029
    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
  5030
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  5037
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  5041
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  5044
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5049
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  5053
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5054
                
873a5b60a7ea Fixed -I library 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
            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
  5058
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  5061
    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
  5062
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  5069
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  5073
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  5076
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5081
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  5085
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5086
                
873a5b60a7ea Fixed -I library 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
            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
  5090
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  5093
    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
  5094
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  5101
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  5105
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  5108
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5113
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  5117
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5118
                
873a5b60a7ea Fixed -I library 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
            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
  5122
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  5125
    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
  5126
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  5133
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  5137
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  5140
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5145
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  5149
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5150
                
873a5b60a7ea Fixed -I library 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
            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
  5154
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  5157
    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
  5158
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  5165
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  5169
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  5172
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5177
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  5181
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5182
                
873a5b60a7ea Fixed -I library 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
            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
  5186
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  5189
    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
  5190
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  5197
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  5201
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  5204
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5209
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  5213
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5214
                
873a5b60a7ea Fixed -I library 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
            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
  5218
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  5221
    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
  5222
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  5229
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  5233
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  5236
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5241
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  5245
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5246
                
873a5b60a7ea Fixed -I library 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
            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
  5250
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  5253
    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
  5254
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  5259
    {
873a5b60a7ea Fixed -I library 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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  5265
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  5268
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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 *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5273
            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
  5274
            {
873a5b60a7ea Fixed -I library 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 * 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
  5277
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5279
            }
873a5b60a7ea Fixed -I library 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
            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
  5282
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  5285
    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
  5286
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  5297
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  5300
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5305
            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
  5306
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  5309
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5312
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  5317
    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
  5318
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  5321
 */
873a5b60a7ea Fixed -I library 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
    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
  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
        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
  5325
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  5329
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  5332
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5337
            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
  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
        
873a5b60a7ea Fixed -I library 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 * 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
  5341
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5345
            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
  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
    }/*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
  5349
    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
  5350
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  5353
 */
873a5b60a7ea Fixed -I library 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
    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
  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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  5361
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  5364
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5369
            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
  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
                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
  5373
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  5378
        }
873a5b60a7ea Fixed -I library 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
    }/*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
  5381
    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
  5382
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  5385
 */
873a5b60a7ea Fixed -I library 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
    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
  5387
    {
873a5b60a7ea Fixed -I library 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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  5393
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  5396
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5401
            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
  5402
            {
873a5b60a7ea Fixed -I library 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
                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
  5405
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  5410
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5411
        
873a5b60a7ea Fixed -I library 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
    }/*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
  5413
    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
  5414
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  5417
 */
873a5b60a7ea Fixed -I library 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
    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
  5419
    {
873a5b60a7ea Fixed -I library 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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  5425
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  5428
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5433
            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
  5434
            {
873a5b60a7ea Fixed -I library 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
                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
  5437
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  5442
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5443
        
873a5b60a7ea Fixed -I library 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
    }/*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
  5445
    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
  5446
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  5449
 */
873a5b60a7ea Fixed -I library 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
    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
  5451
    {
873a5b60a7ea Fixed -I library 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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  5457
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  5460
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5465
            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
  5466
            {
873a5b60a7ea Fixed -I library 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
                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
  5469
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  5474
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5475
        
873a5b60a7ea Fixed -I library 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
    }/*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
  5477
    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
  5478
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  5481
 */
873a5b60a7ea Fixed -I library 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
    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
  5483
    {
873a5b60a7ea Fixed -I library 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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  5489
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  5492
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5497
            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
  5498
            {
873a5b60a7ea Fixed -I library 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
                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
  5501
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  5506
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5507
        
873a5b60a7ea Fixed -I library 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
    }/*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
  5509
    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
  5510
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  5513
 */
873a5b60a7ea Fixed -I library 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
    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
  5515
    {
873a5b60a7ea Fixed -I library 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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  5521
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  5524
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5529
            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
  5530
            {
873a5b60a7ea Fixed -I library 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
                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
  5533
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  5538
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5539
        
873a5b60a7ea Fixed -I library 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
    }/*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
  5541
    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
  5542
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  5545
 */
873a5b60a7ea Fixed -I library 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
    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
  5547
    {
873a5b60a7ea Fixed -I library 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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  5553
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  5556
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5561
            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
  5562
            {
873a5b60a7ea Fixed -I library 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
                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
  5565
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  5570
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5571
        
873a5b60a7ea Fixed -I library 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
    }/*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
  5573
    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
  5574
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  5577
 */
873a5b60a7ea Fixed -I library 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
    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
  5579
    {
873a5b60a7ea Fixed -I library 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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  5585
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  5588
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5593
            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
  5594
            {
873a5b60a7ea Fixed -I library 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
                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
  5597
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  5602
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5603
        
873a5b60a7ea Fixed -I library 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
    }/*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
  5605
    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
  5606
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  5609
 */
873a5b60a7ea Fixed -I library 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
    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
  5611
    {
873a5b60a7ea Fixed -I library 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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  5617
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  5620
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5625
            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
  5626
            {
873a5b60a7ea Fixed -I library 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
                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
  5629
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  5634
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5635
        
873a5b60a7ea Fixed -I library 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
    }/*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
  5637
    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
  5638
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  5641
 */
873a5b60a7ea Fixed -I library 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
    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
  5643
    {
873a5b60a7ea Fixed -I library 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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  5649
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  5652
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5657
            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
  5658
            {
873a5b60a7ea Fixed -I library 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
                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
  5661
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  5666
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5667
        
873a5b60a7ea Fixed -I library 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
    }/*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
  5669
    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
  5670
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  5673
 */
873a5b60a7ea Fixed -I library 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
    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
  5675
    {
873a5b60a7ea Fixed -I library 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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  5681
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  5684
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5689
            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
  5690
            {
873a5b60a7ea Fixed -I library 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
                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
  5693
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  5698
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5699
        
873a5b60a7ea Fixed -I library 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
    }/*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
  5701
    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
  5702
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  5705
 */
873a5b60a7ea Fixed -I library 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
    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
  5707
    {
873a5b60a7ea Fixed -I library 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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  5713
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  5716
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5721
            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
  5722
            {
873a5b60a7ea Fixed -I library 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
                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
  5725
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  5730
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5731
        
873a5b60a7ea Fixed -I library 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
    }/*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
  5733
    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
  5734
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  5737
 */
873a5b60a7ea Fixed -I library 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
    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
  5739
    {
873a5b60a7ea Fixed -I library 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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  5745
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  5748
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5753
            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
  5754
            {
873a5b60a7ea Fixed -I library 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
                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
  5757
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  5762
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5763
        
873a5b60a7ea Fixed -I library 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
    }/*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
  5765
    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
  5766
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  5769
 */
873a5b60a7ea Fixed -I library 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
    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
  5771
    {
873a5b60a7ea Fixed -I library 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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  5777
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  5780
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5785
            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
  5786
            {
873a5b60a7ea Fixed -I library 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
                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
  5789
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  5794
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5795
        
873a5b60a7ea Fixed -I library 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
    }/*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
  5797
    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
  5798
873a5b60a7ea Fixed -I library 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
/****
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5800
 *REAL_TO_LREAL
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5801
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5802
    case function_real_to_lreal :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5803
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5804
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5805
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5806
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5807
            identifier_c param_name("IN");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5808
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5809
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5810
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5811
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5812
            if (IN_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5813
              IN_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5814
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5815
            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: 34
diff changeset
  5816
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5817
            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: 34
diff changeset
  5818
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5819
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5820
                symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5821
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5822
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5823
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5824
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5825
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5826
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5827
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5828
    }/*function_real_to_lreal*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5829
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
  5830
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
  5831
/****
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
  5832
 *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
  5833
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5834
    case function_real_to_time :
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5835
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5836
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5837
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5838
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5839
            identifier_c param_name("IN");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5840
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5841
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5842
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5843
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5844
            if (IN_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5845
              IN_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5846
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5847
            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: 34
diff changeset
  5848
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5849
            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: 34
diff changeset
  5850
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  5851
        
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
  5852
                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
  5853
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5854
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5855
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5856
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5857
            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
  5858
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5859
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5860
    }/*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
  5861
    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
  5862
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  5865
 */
873a5b60a7ea Fixed -I library 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
    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
  5867
    {
873a5b60a7ea Fixed -I library 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
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  5873
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  5876
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5881
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  5885
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  5890
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5892
    }/*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
  5893
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  5897
 */
873a5b60a7ea Fixed -I library 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
    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
  5899
    {
873a5b60a7ea Fixed -I library 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
        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
  5901
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  5905
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  5908
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5913
            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
  5914
            {
873a5b60a7ea Fixed -I library 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 * 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
  5917
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  5922
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  5925
    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
  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
 *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
  5929
 */
873a5b60a7ea Fixed -I library 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
    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
  5931
    {
873a5b60a7ea Fixed -I library 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
        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
  5933
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  5937
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  5940
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5945
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  5949
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  5957
    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
  5958
873a5b60a7ea Fixed -I library 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
 *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
  5961
 */
873a5b60a7ea Fixed -I library 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
    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
  5963
    {
873a5b60a7ea Fixed -I library 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
        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
  5965
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  5969
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  5972
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  5977
            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
  5978
            {
873a5b60a7ea Fixed -I library 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
                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
  5981
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            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
  5986
        }
873a5b60a7ea Fixed -I library 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
    }/*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
  5989
    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
  5990
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5991
/****
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  5995
    {
873a5b60a7ea Fixed -I library 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
        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
  5997
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  6001
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  6004
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6009
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  6013
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  6018
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  6021
    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
  6022
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6024
 *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
  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
    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
  6027
    {
873a5b60a7ea Fixed -I library 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
        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
  6029
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  6033
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  6036
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6041
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  6045
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  6050
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  6053
    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
  6054
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6056
 *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
  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
    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
  6059
    {
873a5b60a7ea Fixed -I library 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
        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
  6061
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  6065
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  6068
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6073
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  6077
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  6082
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  6085
    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
  6086
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6088
 *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
  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
    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
  6091
    {
873a5b60a7ea Fixed -I library 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
        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
  6093
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  6097
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  6100
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6105
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  6109
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  6114
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  6117
    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
  6118
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6120
 *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
  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
    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
  6123
    {
873a5b60a7ea Fixed -I library 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
        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
  6125
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  6129
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  6132
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6137
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  6141
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  6146
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  6149
    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
  6150
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6152
 *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
  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
    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
  6155
    {
873a5b60a7ea Fixed -I library 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
        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
  6157
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  6161
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  6164
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6169
            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
  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
        
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6172
                symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6173
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6174
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6175
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6176
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6177
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6178
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6179
        
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
  6180
    }/*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
  6181
    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
  6182
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6184
 *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
  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
    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
  6187
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6188
        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
  6189
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6190
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6191
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6192
            /* 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
  6193
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6194
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6195
            /* Get the value from a foo(<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
  6196
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6197
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6198
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6201
            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: 34
diff changeset
  6202
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6203
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6204
                symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6205
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6206
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6207
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6208
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6209
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6210
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6211
        
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
  6212
    }/*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
  6213
    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
  6214
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6216
 *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
  6217
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6218
    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
  6219
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6220
        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
  6221
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6222
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6223
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6224
            /* 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
  6225
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6226
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6227
            /* Get the value from a foo(<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
  6228
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6229
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6230
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6233
            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: 34
diff changeset
  6234
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6235
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6236
                symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6237
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6238
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6239
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6240
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6241
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6242
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6243
        
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
  6244
    }/*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
  6245
    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
  6246
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6248
 *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
  6249
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6250
    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
  6251
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6252
        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
  6253
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6254
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6255
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6256
            /* 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
  6257
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6258
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6259
            /* Get the value from a foo(<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
  6260
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6261
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6262
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6265
            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: 34
diff changeset
  6266
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6267
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6268
                symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6269
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6270
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6271
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6272
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6273
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6274
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6275
        
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
  6276
    }/*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
  6277
    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
  6278
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6280
 *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
  6281
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6282
    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
  6283
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6284
        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
  6285
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6286
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6287
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6288
            /* 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
  6289
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6290
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6291
            /* Get the value from a foo(<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
  6292
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6293
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6294
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6297
            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: 34
diff changeset
  6298
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6299
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6300
                symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6301
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6302
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6303
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6304
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6305
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6306
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6307
        
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
  6308
    }/*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
  6309
    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
  6310
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6312
 *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
  6313
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6314
    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
  6315
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6316
        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
  6317
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6318
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6319
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6320
            /* 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
  6321
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6322
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6323
            /* Get the value from a foo(<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
  6324
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6325
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6326
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6329
            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: 34
diff changeset
  6330
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6331
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6332
                symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6333
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6334
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6335
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6336
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6337
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6338
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6339
        
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
  6340
    }/*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
  6341
    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
  6342
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6344
 *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
  6345
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6346
    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
  6347
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6348
        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
  6349
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6350
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6351
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6352
            /* 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
  6353
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6354
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6355
            /* Get the value from a foo(<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
  6356
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6357
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6358
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6361
            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: 34
diff changeset
  6362
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6363
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6364
                symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6365
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6366
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6367
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6368
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6369
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6370
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6371
        
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
  6372
    }/*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
  6373
    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
  6374
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6376
 *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
  6377
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6378
    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
  6379
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6380
        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
  6381
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6382
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6383
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6384
            /* 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
  6385
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6386
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6387
            /* Get the value from a foo(<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
  6388
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6389
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6390
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6393
            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: 34
diff changeset
  6394
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6395
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6396
                symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6397
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6398
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6399
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6400
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6401
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6402
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6403
        
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
  6404
    }/*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
  6405
    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
  6406
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6408
 *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
  6409
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6410
    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
  6411
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6412
        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
  6413
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6414
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6415
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6416
            /* 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
  6417
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6418
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6419
            /* Get the value from a foo(<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
  6420
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6421
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6422
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6425
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  6429
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  6434
        }
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  6437
    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
  6438
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6440
 *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
  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
    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
  6443
    {
873a5b60a7ea Fixed -I library 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
        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
  6445
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  6449
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  6452
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6457
            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: 34
diff changeset
  6458
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6459
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6460
                symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6461
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6462
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6463
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6464
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6465
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6466
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  6467
        
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
  6468
    }/*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
  6469
    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
  6470
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6472
 *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
  6473
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6474
    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
  6475
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6476
        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
  6477
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6478
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6479
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6480
            /* 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
  6481
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6482
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6483
            /* Get the value from a foo(<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
  6484
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6485
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6486
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6487
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6489
            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
  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
                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
  6493
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  6501
    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
  6502
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  6505
 */
873a5b60a7ea Fixed -I library 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
    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
  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 *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
  6509
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  6513
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  6516
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6521
            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
  6522
            {
873a5b60a7ea Fixed -I library 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
                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
  6525
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  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
    }/*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
  6533
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  6537
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6538
    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
  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
        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
  6541
873a5b60a7ea Fixed -I library 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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  6545
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  6548
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6553
            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
  6554
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library 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
                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
  6557
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  6562
        }
873a5b60a7ea Fixed -I library 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
    }/*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
  6565
    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
  6566
873a5b60a7ea Fixed -I library 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
 *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
  6569
 */
873a5b60a7ea Fixed -I library 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
    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
  6571
    {
873a5b60a7ea Fixed -I library 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
        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
  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
        {
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  6577
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  6580
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6585
            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
  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
        
873a5b60a7ea Fixed -I library 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
                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
  6589
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            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
  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
        
873a5b60a7ea Fixed -I library 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
    }/*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
  6597
    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
  6598
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library 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
 *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
  6601
 */
873a5b60a7ea Fixed -I library 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
    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
  6603
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6604
        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
  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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  6609
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  6612
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6617
            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
  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
                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
  6621
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  6626
        }
873a5b60a7ea Fixed -I library 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
    }/*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
  6629
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  6635
    {
873a5b60a7ea Fixed -I library 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
        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
  6637
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  6641
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  6644
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6649
            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
  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
                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
  6653
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  6658
        }
873a5b60a7ea Fixed -I library 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
    }/*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
  6661
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  6667
    {
873a5b60a7ea Fixed -I library 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
        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
  6669
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  6673
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  6676
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6681
            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
  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
                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
  6685
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  6690
        }
873a5b60a7ea Fixed -I library 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
    }/*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
  6693
    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
  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
/****
873a5b60a7ea Fixed -I library 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
 *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
  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
    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
  6699
    {
873a5b60a7ea Fixed -I library 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
        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
  6701
873a5b60a7ea Fixed -I library 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
            identifier_c param_name("IN");
873a5b60a7ea Fixed -I library 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
            /* 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
  6705
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            /* Get the value from a foo(<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
  6708
            if (IN_param_value == NULL)
873a5b60a7ea Fixed -I library 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
              IN_param_value = function_call_param_iterator.next();
873a5b60a7ea Fixed -I library 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
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
873a5b60a7ea Fixed -I library 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
            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 ;
873a5b60a7ea Fixed -I library 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
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6713
            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
  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
                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
  6717
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
  6722
        }
873a5b60a7ea Fixed -I library 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
    }/*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
  6725
    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
  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
/****
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6728
 *TIME_TO_SINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6729
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6730
    case function_time_to_sint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6731
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6732
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6733
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6734
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6735
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6736
            /* 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: 40
diff changeset
  6737
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6738
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6739
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6740
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6741
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6742
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6743
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6744
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6745
            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: 40
diff changeset
  6746
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6747
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6748
                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: 40
diff changeset
  6749
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6750
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6751
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6752
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6753
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6754
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6755
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6756
    }/*function_time_to_sint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6757
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6758
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6759
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6760
 *TIME_TO_INT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6761
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6762
    case function_time_to_int :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6763
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6764
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6765
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6766
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6767
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6768
            /* 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: 40
diff changeset
  6769
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6770
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6771
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6772
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6773
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6774
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6775
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6776
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6777
            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: 40
diff changeset
  6778
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6779
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6780
                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: 40
diff changeset
  6781
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6782
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6783
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6784
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6785
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6786
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6787
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6788
    }/*function_time_to_int*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6789
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6790
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6791
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6792
 *TIME_TO_DINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6793
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6794
    case function_time_to_dint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6795
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6796
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6797
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6798
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6799
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6800
            /* 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: 40
diff changeset
  6801
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6802
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6803
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6804
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6805
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6806
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6807
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6808
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6809
            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: 40
diff changeset
  6810
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6811
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6812
                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: 40
diff changeset
  6813
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6814
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6815
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6816
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6817
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6818
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6819
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6820
    }/*function_time_to_dint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6821
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6822
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6823
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6824
 *TIME_TO_LINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6825
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6826
    case function_time_to_lint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6827
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6828
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6829
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6830
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6831
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6832
            /* 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: 40
diff changeset
  6833
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6834
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6835
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6836
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6837
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6838
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6839
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6840
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6841
            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: 40
diff changeset
  6842
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6843
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6844
                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: 40
diff changeset
  6845
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6846
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6847
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6848
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6849
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6850
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6851
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6852
    }/*function_time_to_lint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6853
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6854
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6855
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6856
 *TIME_TO_USINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6857
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6858
    case function_time_to_usint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6859
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6860
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6861
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6862
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6863
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6864
            /* 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: 40
diff changeset
  6865
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6866
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6867
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6868
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6869
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6870
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6871
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6872
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6873
            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: 40
diff changeset
  6874
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6875
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6876
                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: 40
diff changeset
  6877
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6878
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6879
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6880
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6881
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6882
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6883
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6884
    }/*function_time_to_usint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6885
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6886
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6887
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6888
 *TIME_TO_UINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6889
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6890
    case function_time_to_uint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6891
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6892
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6893
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6894
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6895
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6896
            /* 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: 40
diff changeset
  6897
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6898
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6899
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6900
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6901
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6902
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6903
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6904
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6905
            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: 40
diff changeset
  6906
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6907
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6908
                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: 40
diff changeset
  6909
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6910
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6911
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6912
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6913
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6914
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6915
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6916
    }/*function_time_to_uint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6917
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6918
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6919
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6920
 *TIME_TO_UDINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6921
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6922
    case function_time_to_udint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6923
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6924
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6925
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6926
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6927
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6928
            /* 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: 40
diff changeset
  6929
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6930
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6931
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6932
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6933
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6934
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6935
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6936
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6937
            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: 40
diff changeset
  6938
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6939
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6940
                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: 40
diff changeset
  6941
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6942
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6943
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6944
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6945
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6946
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6947
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6948
    }/*function_time_to_udint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6949
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6950
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6951
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6952
 *TIME_TO_ULINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6953
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6954
    case function_time_to_ulint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6955
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6956
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6957
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6958
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6959
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6960
            /* 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: 40
diff changeset
  6961
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6962
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6963
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6964
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6965
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6966
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6967
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6968
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6969
            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: 40
diff changeset
  6970
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6971
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6972
                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: 40
diff changeset
  6973
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6974
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6975
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6976
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6977
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6978
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6979
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6980
    }/*function_time_to_ulint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6981
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6982
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6983
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6984
 *TIME_TO_REAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6985
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6986
    case function_time_to_real :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6987
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6988
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6989
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6990
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6991
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6992
            /* 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: 40
diff changeset
  6993
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6994
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6995
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6996
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6997
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6998
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  6999
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7000
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7001
            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: 40
diff changeset
  7002
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7003
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7004
                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: 40
diff changeset
  7005
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7006
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7007
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7008
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7009
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7010
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7011
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7012
    }/*function_time_to_real*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7013
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7014
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7015
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7016
 *TIME_TO_LREAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7017
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7018
    case function_time_to_lreal :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7019
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
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: 40
diff changeset
  7021
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7022
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7023
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7024
            /* 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: 40
diff changeset
  7025
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7026
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7027
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7028
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7029
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7030
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7031
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7032
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7033
            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: 40
diff changeset
  7034
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7035
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7036
                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: 40
diff changeset
  7037
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7038
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7039
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7040
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7041
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7042
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7043
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7044
    }/*function_time_to_lreal*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7045
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7046
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7047
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7048
 *TIME_TO_STRING
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7049
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7050
    case function_time_to_string :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7051
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7052
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7053
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7054
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7055
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
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: 40
diff changeset
  7057
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7058
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7059
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7060
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7061
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7062
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7063
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7064
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7065
            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: 40
diff changeset
  7066
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7067
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7068
                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: 40
diff changeset
  7069
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7070
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7071
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7072
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7073
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7074
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7075
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7076
    }/*function_time_to_string*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7077
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7078
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7079
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7080
 *TIME_TO_BYTE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7081
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7082
    case function_time_to_byte :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7083
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7084
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7085
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7086
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7087
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7088
            /* 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: 40
diff changeset
  7089
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7090
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7091
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7092
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7093
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7094
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7095
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7096
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7097
            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: 40
diff changeset
  7098
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7099
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7100
                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: 40
diff changeset
  7101
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7102
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7103
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7104
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7105
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7106
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7107
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7108
    }/*function_time_to_byte*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7109
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7110
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7111
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7112
 *TIME_TO_WORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7113
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7114
    case function_time_to_word :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7115
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7116
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7117
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7118
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7119
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7120
            /* 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: 40
diff changeset
  7121
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7122
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7123
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7124
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7125
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7126
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7127
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7128
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7129
            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: 40
diff changeset
  7130
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7131
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7132
                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: 40
diff changeset
  7133
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7134
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7135
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7136
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7137
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7138
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7139
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7140
    }/*function_time_to_word*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7141
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7142
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7143
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7144
 *TIME_TO_DWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7145
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7146
    case function_time_to_dword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7147
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7148
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7149
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7150
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7151
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7152
            /* 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: 40
diff changeset
  7153
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7154
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7155
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7156
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7157
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7158
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7159
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7160
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
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: 40
diff changeset
  7162
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7163
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7164
                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: 40
diff changeset
  7165
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7166
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7167
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7168
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7169
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7170
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7171
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7172
    }/*function_time_to_dword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7173
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7174
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7175
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7176
 *TIME_TO_LWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7177
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7178
    case function_time_to_lword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7179
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7180
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7181
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7182
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7183
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7184
            /* 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: 40
diff changeset
  7185
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7186
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7187
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7188
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7189
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7190
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7191
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7192
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7193
            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: 40
diff changeset
  7194
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7195
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7196
                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: 40
diff changeset
  7197
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7198
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7199
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7200
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7201
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7202
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7203
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7204
    }/*function_time_to_lword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7205
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7206
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7207
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7208
 *DATE_TO_SINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7209
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7210
    case function_date_to_sint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7211
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7212
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7213
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7214
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7215
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7216
            /* 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: 40
diff changeset
  7217
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7218
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7219
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7220
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7221
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7222
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7223
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7224
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7225
            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: 40
diff changeset
  7226
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7227
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7228
                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: 40
diff changeset
  7229
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7230
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7231
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7232
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7233
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7234
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7235
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7236
    }/*function_date_to_sint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7237
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7238
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7239
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7240
 *DATE_TO_INT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7241
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7242
    case function_date_to_int :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7243
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7244
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7245
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7246
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7247
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7248
            /* 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: 40
diff changeset
  7249
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7250
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7251
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7252
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7253
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7254
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7255
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7256
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7257
            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: 40
diff changeset
  7258
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7259
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7260
                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: 40
diff changeset
  7261
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7262
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7263
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7264
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7265
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7266
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7267
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7268
    }/*function_date_to_int*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7269
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7270
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7271
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7272
 *DATE_TO_DINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7273
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7274
    case function_date_to_dint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7275
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7276
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7277
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7278
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7279
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7280
            /* 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: 40
diff changeset
  7281
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7282
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7283
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7284
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7285
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7286
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7287
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7288
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7289
            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: 40
diff changeset
  7290
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7291
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7292
                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: 40
diff changeset
  7293
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7294
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7295
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7296
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7297
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7298
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7299
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7300
    }/*function_date_to_dint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7301
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7302
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7303
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7304
 *DATE_TO_LINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7305
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7306
    case function_date_to_lint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7307
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7308
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7309
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7310
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7311
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7312
            /* 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: 40
diff changeset
  7313
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7314
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7315
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7316
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7317
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7318
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7319
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7320
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7321
            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: 40
diff changeset
  7322
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7323
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7324
                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: 40
diff changeset
  7325
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7326
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7327
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7328
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7329
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7330
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7331
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7332
    }/*function_date_to_lint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7333
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7334
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7335
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7336
 *DATE_TO_USINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7337
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7338
    case function_date_to_usint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7339
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7340
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7341
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7342
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7343
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7344
            /* 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: 40
diff changeset
  7345
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7346
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7347
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7348
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7349
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7350
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7351
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7352
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7353
            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: 40
diff changeset
  7354
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7355
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7356
                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: 40
diff changeset
  7357
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7358
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7359
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7360
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7361
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7362
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7363
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7364
    }/*function_date_to_usint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7365
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7366
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7367
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7368
 *DATE_TO_UINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7369
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7370
    case function_date_to_uint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7371
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7372
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7373
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7374
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7375
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7376
            /* 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: 40
diff changeset
  7377
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7378
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7379
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7380
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7381
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7382
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7383
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7384
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7385
            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: 40
diff changeset
  7386
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7387
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7388
                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: 40
diff changeset
  7389
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7390
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7391
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7392
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7393
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7394
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7395
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7396
    }/*function_date_to_uint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7397
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7398
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7399
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7400
 *DATE_TO_UDINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7401
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7402
    case function_date_to_udint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7403
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7404
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7405
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7406
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7407
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7408
            /* 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: 40
diff changeset
  7409
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7410
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7411
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7412
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7413
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7414
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7415
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7416
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7417
            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: 40
diff changeset
  7418
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7419
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7420
                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: 40
diff changeset
  7421
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7422
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7423
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7424
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7425
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7426
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7427
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7428
    }/*function_date_to_udint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7429
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7430
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7431
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7432
 *DATE_TO_ULINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7433
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7434
    case function_date_to_ulint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7435
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7436
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7437
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7438
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7439
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7440
            /* 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: 40
diff changeset
  7441
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7442
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7443
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7444
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7445
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7446
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7447
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7448
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7449
            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: 40
diff changeset
  7450
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7451
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7452
                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: 40
diff changeset
  7453
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7454
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7455
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7456
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7457
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7458
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7459
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7460
    }/*function_date_to_ulint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7461
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7462
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7463
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7464
 *DATE_TO_REAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7465
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7466
    case function_date_to_real :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7467
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7468
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7469
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7470
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7471
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7472
            /* 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: 40
diff changeset
  7473
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7474
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7475
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7476
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7477
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7478
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7479
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7480
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7481
            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: 40
diff changeset
  7482
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7483
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7484
                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: 40
diff changeset
  7485
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7486
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7487
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7488
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7489
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7490
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7491
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7492
    }/*function_date_to_real*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7493
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7494
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7495
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7496
 *DATE_TO_LREAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7497
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7498
    case function_date_to_lreal :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7499
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7500
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7501
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7502
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7503
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7504
            /* 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: 40
diff changeset
  7505
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7506
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7507
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7508
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7509
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7510
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7511
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7512
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7513
            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: 40
diff changeset
  7514
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7515
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7516
                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: 40
diff changeset
  7517
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7518
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7519
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7520
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7521
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7522
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7523
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7524
    }/*function_date_to_lreal*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7525
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7526
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7527
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7528
 *DATE_TO_STRING
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7529
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7530
    case function_date_to_string :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7531
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7532
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7533
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7534
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7535
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7536
            /* 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: 40
diff changeset
  7537
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7538
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7539
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7540
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7541
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7542
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7543
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7544
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7545
            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: 40
diff changeset
  7546
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7547
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7548
                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: 40
diff changeset
  7549
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7550
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7551
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7552
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7553
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7554
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7555
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7556
    }/*function_date_to_string*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7557
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7558
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7559
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7560
 *DATE_TO_BYTE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7561
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7562
    case function_date_to_byte :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7563
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7564
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7565
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7566
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7567
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7568
            /* 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: 40
diff changeset
  7569
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7570
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7571
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7572
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7573
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7574
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7575
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7576
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7577
            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: 40
diff changeset
  7578
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7579
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7580
                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: 40
diff changeset
  7581
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7582
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7583
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7584
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7585
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7586
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7587
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7588
    }/*function_date_to_byte*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7589
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7590
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7591
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7592
 *DATE_TO_WORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7593
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7594
    case function_date_to_word :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7595
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7596
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7597
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7598
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7599
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7600
            /* 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: 40
diff changeset
  7601
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7602
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7603
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7604
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7605
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7606
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7607
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7608
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7609
            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: 40
diff changeset
  7610
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7611
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7612
                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: 40
diff changeset
  7613
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7614
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7615
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7616
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7617
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7618
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7619
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7620
    }/*function_date_to_word*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7621
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7622
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7623
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7624
 *DATE_TO_DWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7625
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7626
    case function_date_to_dword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7627
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7628
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7629
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7630
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7631
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7632
            /* 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: 40
diff changeset
  7633
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7634
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7635
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7636
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7637
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7638
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7639
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7640
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7641
            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: 40
diff changeset
  7642
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7643
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7644
                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: 40
diff changeset
  7645
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7646
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7647
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7648
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7649
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7650
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7651
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7652
    }/*function_date_to_dword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7653
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7654
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7655
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7656
 *DATE_TO_LWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7657
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7658
    case function_date_to_lword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7659
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7660
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7661
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7662
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7663
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7664
            /* 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: 40
diff changeset
  7665
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7666
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7667
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7668
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7669
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7670
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7671
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7672
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7673
            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: 40
diff changeset
  7674
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7675
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7676
                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: 40
diff changeset
  7677
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7678
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7679
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7680
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7681
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7682
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7683
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7684
    }/*function_date_to_lword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7685
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7686
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7687
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7688
 *TOD_TO_SINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7689
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7690
    case function_tod_to_sint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7691
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7692
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7693
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7694
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7695
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7696
            /* 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: 40
diff changeset
  7697
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7698
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7699
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7700
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7701
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7702
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7703
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7704
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7705
            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: 40
diff changeset
  7706
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7707
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7708
                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: 40
diff changeset
  7709
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7710
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7711
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7712
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7713
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7714
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7715
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7716
    }/*function_tod_to_sint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7717
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7718
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7719
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7720
 *TOD_TO_INT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7721
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7722
    case function_tod_to_int :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7723
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7724
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7725
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7726
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7727
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7728
            /* 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: 40
diff changeset
  7729
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7730
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7731
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7732
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7733
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7734
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7735
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7736
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7737
            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: 40
diff changeset
  7738
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7739
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7740
                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: 40
diff changeset
  7741
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7742
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7743
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7744
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7745
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7746
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7747
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7748
    }/*function_tod_to_int*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7749
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7750
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7751
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7752
 *TOD_TO_DINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7753
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7754
    case function_tod_to_dint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7755
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7756
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7757
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7758
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7759
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7760
            /* 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: 40
diff changeset
  7761
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7762
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7763
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7764
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7765
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7766
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7767
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7768
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7769
            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: 40
diff changeset
  7770
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7771
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7772
                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: 40
diff changeset
  7773
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7774
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7775
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7776
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7777
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7778
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7779
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7780
    }/*function_tod_to_dint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7781
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7782
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7783
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7784
 *TOD_TO_LINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7785
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7786
    case function_tod_to_lint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7787
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7788
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7789
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7790
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7791
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7792
            /* 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: 40
diff changeset
  7793
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7794
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7795
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7796
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7797
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7798
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7799
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7800
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7801
            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: 40
diff changeset
  7802
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7803
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7804
                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: 40
diff changeset
  7805
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7806
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7807
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7808
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7809
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7810
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7811
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7812
    }/*function_tod_to_lint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7813
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7814
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7815
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7816
 *TOD_TO_USINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7817
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7818
    case function_tod_to_usint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7819
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7820
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7821
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7822
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7823
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7824
            /* 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: 40
diff changeset
  7825
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7826
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7827
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7828
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7829
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7830
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7831
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7832
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7833
            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: 40
diff changeset
  7834
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7835
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7836
                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: 40
diff changeset
  7837
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7838
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7839
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7840
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7841
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7842
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7843
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7844
    }/*function_tod_to_usint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7845
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7846
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7847
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7848
 *TOD_TO_UINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7849
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7850
    case function_tod_to_uint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7851
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7852
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7853
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7854
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7855
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7856
            /* 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: 40
diff changeset
  7857
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7858
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7859
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7860
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7861
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7862
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7863
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7864
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7865
            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: 40
diff changeset
  7866
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7867
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7868
                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: 40
diff changeset
  7869
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7870
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7871
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7872
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7873
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7874
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7875
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7876
    }/*function_tod_to_uint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7877
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7878
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7879
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7880
 *TOD_TO_UDINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7881
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7882
    case function_tod_to_udint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7883
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7884
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7885
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7886
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7887
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7888
            /* 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: 40
diff changeset
  7889
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7890
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7891
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7892
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7893
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7894
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7895
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7896
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7897
            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: 40
diff changeset
  7898
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7899
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7900
                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: 40
diff changeset
  7901
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7902
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7903
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7904
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7905
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7906
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7907
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7908
    }/*function_tod_to_udint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7909
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7910
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7911
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7912
 *TOD_TO_ULINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7913
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7914
    case function_tod_to_ulint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7915
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7916
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7917
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7918
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7919
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7920
            /* 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: 40
diff changeset
  7921
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7922
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7923
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7924
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7925
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7926
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7927
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7928
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7929
            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: 40
diff changeset
  7930
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7931
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7932
                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: 40
diff changeset
  7933
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7934
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7935
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7936
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7937
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7938
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7939
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7940
    }/*function_tod_to_ulint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7941
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7942
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7943
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7944
 *TOD_TO_REAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7945
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7946
    case function_tod_to_real :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7947
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7948
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7949
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7950
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7951
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7952
            /* 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: 40
diff changeset
  7953
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7954
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7955
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7956
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7957
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7958
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7959
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7960
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7961
            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: 40
diff changeset
  7962
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7963
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7964
                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: 40
diff changeset
  7965
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7966
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7967
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7968
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7969
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7970
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7971
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7972
    }/*function_tod_to_real*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7973
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7974
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7975
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7976
 *TOD_TO_LREAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7977
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7978
    case function_tod_to_lreal :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7979
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7980
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7981
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7982
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7983
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7984
            /* 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: 40
diff changeset
  7985
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7986
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7987
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7988
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7989
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7990
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7991
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7992
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7993
            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: 40
diff changeset
  7994
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7995
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7996
                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: 40
diff changeset
  7997
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7998
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  7999
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8000
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8001
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8002
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8003
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8004
    }/*function_tod_to_lreal*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8005
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8006
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8007
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8008
 *TOD_TO_STRING
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8009
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8010
    case function_tod_to_string :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8011
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8012
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8013
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8014
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8015
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8016
            /* 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: 40
diff changeset
  8017
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8018
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8019
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8020
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8021
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8022
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8023
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8024
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8025
            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: 40
diff changeset
  8026
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8027
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8028
                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: 40
diff changeset
  8029
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8030
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8031
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8032
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8033
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8034
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8035
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8036
    }/*function_tod_to_string*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8037
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8038
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8039
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8040
 *TOD_TO_BYTE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8041
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8042
    case function_tod_to_byte :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8043
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8044
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8045
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8046
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8047
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8048
            /* 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: 40
diff changeset
  8049
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8050
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8051
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8052
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8053
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8054
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8055
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8056
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8057
            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: 40
diff changeset
  8058
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8059
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8060
                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: 40
diff changeset
  8061
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8062
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8063
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8064
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8065
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8066
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8067
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8068
    }/*function_tod_to_byte*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8069
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8070
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8071
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8072
 *TOD_TO_WORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8073
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8074
    case function_tod_to_word :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8075
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
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: 40
diff changeset
  8077
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8078
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8079
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8080
            /* 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: 40
diff changeset
  8081
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8082
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8083
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8084
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8085
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8086
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8087
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8088
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8089
            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: 40
diff changeset
  8090
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8091
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8092
                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: 40
diff changeset
  8093
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8094
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8095
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8096
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8097
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8098
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8099
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8100
    }/*function_tod_to_word*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8101
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8102
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8103
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8104
 *TOD_TO_DWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8105
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8106
    case function_tod_to_dword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8107
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8108
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8109
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8110
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8111
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
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: 40
diff changeset
  8113
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8114
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8115
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8116
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8117
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8118
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8119
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8120
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8121
            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: 40
diff changeset
  8122
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8123
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8124
                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: 40
diff changeset
  8125
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8126
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8127
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8128
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8129
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8130
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8131
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8132
    }/*function_tod_to_dword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8133
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8134
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8135
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8136
 *TOD_TO_LWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8137
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8138
    case function_tod_to_lword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8139
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8140
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8141
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8142
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8143
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8144
            /* 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: 40
diff changeset
  8145
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8146
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8147
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8148
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8149
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8150
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8151
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8152
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8153
            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: 40
diff changeset
  8154
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8155
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8156
                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: 40
diff changeset
  8157
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8158
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8159
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8160
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8161
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8162
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8163
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8164
    }/*function_tod_to_lword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8165
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8166
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8167
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8168
 *DT_TO_SINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8169
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8170
    case function_dt_to_sint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8171
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8172
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8173
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8174
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8175
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8176
            /* 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: 40
diff changeset
  8177
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8178
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8179
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8180
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8181
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8182
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8183
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8184
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8185
            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: 40
diff changeset
  8186
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8187
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8188
                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: 40
diff changeset
  8189
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8190
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8191
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8192
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8193
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8194
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8195
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8196
    }/*function_dt_to_sint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8197
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8198
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8199
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8200
 *DT_TO_INT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8201
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8202
    case function_dt_to_int :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8203
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8204
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8205
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8206
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8207
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8208
            /* 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: 40
diff changeset
  8209
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8210
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8211
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8212
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8213
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8214
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8215
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8216
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8217
            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: 40
diff changeset
  8218
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8219
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8220
                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: 40
diff changeset
  8221
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8222
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8223
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8224
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8225
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8226
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8227
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8228
    }/*function_dt_to_int*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8229
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8230
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8231
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8232
 *DT_TO_DINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8233
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8234
    case function_dt_to_dint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8235
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8236
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8237
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8238
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8239
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8240
            /* 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: 40
diff changeset
  8241
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8242
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8243
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8244
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8245
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8246
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8247
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8248
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8249
            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: 40
diff changeset
  8250
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8251
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8252
                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: 40
diff changeset
  8253
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8254
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8255
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8256
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8257
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8258
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8259
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8260
    }/*function_dt_to_dint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8261
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8262
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8263
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8264
 *DT_TO_LINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8265
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8266
    case function_dt_to_lint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8267
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8268
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8269
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8270
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8271
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8272
            /* 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: 40
diff changeset
  8273
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8274
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8275
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8276
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8277
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8278
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8279
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8280
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8281
            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: 40
diff changeset
  8282
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8283
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8284
                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: 40
diff changeset
  8285
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8286
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8287
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8288
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8289
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8290
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8291
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8292
    }/*function_dt_to_lint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8293
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8294
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8295
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8296
 *DT_TO_USINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8297
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8298
    case function_dt_to_usint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8299
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8300
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8301
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8302
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8303
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8304
            /* 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: 40
diff changeset
  8305
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8306
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8307
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8308
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8309
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8310
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8311
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8312
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8313
            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: 40
diff changeset
  8314
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8315
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8316
                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: 40
diff changeset
  8317
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8318
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8319
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8320
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8321
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8322
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8323
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8324
    }/*function_dt_to_usint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8325
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8326
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8327
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8328
 *DT_TO_UINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8329
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8330
    case function_dt_to_uint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8331
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8332
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8333
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8334
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8335
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8336
            /* 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: 40
diff changeset
  8337
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8338
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8339
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8340
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8341
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8342
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8343
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8344
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8345
            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: 40
diff changeset
  8346
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8347
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8348
                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: 40
diff changeset
  8349
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8350
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8351
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8352
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8353
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8354
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8355
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8356
    }/*function_dt_to_uint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8357
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8358
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8359
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8360
 *DT_TO_UDINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8361
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8362
    case function_dt_to_udint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8363
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8364
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8365
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8366
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8367
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8368
            /* 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: 40
diff changeset
  8369
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8370
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8371
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8372
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8373
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8374
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8375
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8376
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8377
            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: 40
diff changeset
  8378
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8379
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8380
                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: 40
diff changeset
  8381
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8382
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8383
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8384
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8385
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8386
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8387
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8388
    }/*function_dt_to_udint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8389
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8390
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8391
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8392
 *DT_TO_ULINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8393
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8394
    case function_dt_to_ulint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8395
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8396
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8397
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8398
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8399
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8400
            /* 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: 40
diff changeset
  8401
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8402
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8403
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8404
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8405
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8406
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8407
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8408
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8409
            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: 40
diff changeset
  8410
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8411
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8412
                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: 40
diff changeset
  8413
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8414
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8415
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8416
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8417
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8418
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8419
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8420
    }/*function_dt_to_ulint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8421
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8422
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8423
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8424
 *DT_TO_REAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8425
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8426
    case function_dt_to_real :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8427
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8428
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8429
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8430
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8431
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8432
            /* 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: 40
diff changeset
  8433
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8434
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8435
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8436
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8437
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8438
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8439
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8440
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8441
            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: 40
diff changeset
  8442
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8443
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8444
                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: 40
diff changeset
  8445
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8446
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8447
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8448
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8449
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8450
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8451
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8452
    }/*function_dt_to_real*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8453
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8454
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8455
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8456
 *DT_TO_LREAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8457
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8458
    case function_dt_to_lreal :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8459
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8460
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8461
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8462
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8463
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8464
            /* 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: 40
diff changeset
  8465
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8466
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8467
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8468
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8469
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8470
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8471
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8472
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8473
            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: 40
diff changeset
  8474
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8475
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8476
                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: 40
diff changeset
  8477
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8478
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8479
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8480
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8481
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8482
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8483
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8484
    }/*function_dt_to_lreal*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8485
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8486
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8487
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8488
 *DT_TO_STRING
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8489
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8490
    case function_dt_to_string :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8491
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8492
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8493
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8494
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8495
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8496
            /* 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: 40
diff changeset
  8497
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8498
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8499
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8500
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8501
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8502
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8503
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8504
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8505
            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: 40
diff changeset
  8506
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8507
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8508
                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: 40
diff changeset
  8509
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8510
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8511
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8512
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8513
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8514
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8515
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8516
    }/*function_dt_to_string*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8517
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8518
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8519
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8520
 *DT_TO_BYTE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8521
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8522
    case function_dt_to_byte :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8523
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8524
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8525
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8526
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8527
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8528
            /* 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: 40
diff changeset
  8529
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8530
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8531
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8532
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8533
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8534
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8535
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8536
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8537
            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: 40
diff changeset
  8538
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8539
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8540
                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: 40
diff changeset
  8541
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8542
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8543
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8544
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8545
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8546
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8547
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8548
    }/*function_dt_to_byte*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8549
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8550
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8551
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8552
 *DT_TO_WORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8553
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8554
    case function_dt_to_word :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8555
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8556
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8557
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8558
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8559
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8560
            /* 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: 40
diff changeset
  8561
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8562
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8563
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8564
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8565
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8566
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8567
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8568
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8569
            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: 40
diff changeset
  8570
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8571
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8572
                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: 40
diff changeset
  8573
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8574
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8575
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8576
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8577
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8578
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8579
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8580
    }/*function_dt_to_word*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8581
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8582
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8583
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8584
 *DT_TO_DWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8585
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8586
    case function_dt_to_dword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8587
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8588
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8589
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8590
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8591
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8592
            /* 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: 40
diff changeset
  8593
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8594
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8595
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8596
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8597
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8598
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8599
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8600
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8601
            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: 40
diff changeset
  8602
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8603
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8604
                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: 40
diff changeset
  8605
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8606
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8607
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8608
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8609
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8610
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8611
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8612
    }/*function_dt_to_dword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8613
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8614
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8615
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8616
 *DT_TO_LWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8617
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8618
    case function_dt_to_lword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8619
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8620
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8621
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8622
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8623
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8624
            /* 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: 40
diff changeset
  8625
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8626
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8627
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8628
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8629
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8630
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8631
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8632
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8633
            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: 40
diff changeset
  8634
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8635
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8636
                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: 40
diff changeset
  8637
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8638
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8639
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8640
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8641
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8642
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8643
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8644
    }/*function_dt_to_lword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8645
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8646
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8647
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8648
 *STRING_TO_BOOL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8649
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8650
    case function_string_to_bool :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8651
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8652
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8653
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8654
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8655
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8656
            /* 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: 40
diff changeset
  8657
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8658
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8659
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8660
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8661
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8662
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8663
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8664
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8665
            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: 34
diff changeset
  8666
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  8667
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  8668
                symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  8669
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  8670
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  8671
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  8672
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  8673
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  8674
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
  8675
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8676
    }/*function_string_to_bool*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8677
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8678
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8679
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8680
 *STRING_TO_SINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8681
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8682
    case function_string_to_sint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8683
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8684
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8685
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8686
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8687
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8688
            /* 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: 40
diff changeset
  8689
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8690
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8691
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8692
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8693
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8694
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8695
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8696
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8697
            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
  8698
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8699
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8700
                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
  8701
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8702
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8703
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8704
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8705
            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
  8706
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8707
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8708
    }/*function_string_to_sint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8709
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8710
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8711
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8712
 *STRING_TO_INT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8713
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8714
    case function_string_to_int :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8715
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8716
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8717
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8718
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8719
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8720
            /* 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: 40
diff changeset
  8721
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8722
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8723
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8724
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8725
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8726
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8727
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8728
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8729
            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
  8730
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8731
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8732
                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
  8733
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8734
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8735
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8736
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8737
            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
  8738
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8739
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8740
    }/*function_string_to_int*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8741
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8742
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8743
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8744
 *STRING_TO_DINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8745
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8746
    case function_string_to_dint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8747
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8748
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8749
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8750
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8751
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8752
            /* 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: 40
diff changeset
  8753
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8754
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8755
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8756
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8757
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8758
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8759
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8760
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8761
            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
  8762
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8763
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8764
                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
  8765
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8766
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8767
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8768
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8769
            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
  8770
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8771
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8772
    }/*function_string_to_dint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8773
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8774
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8775
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8776
 *STRING_TO_LINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8777
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8778
    case function_string_to_lint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8779
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8780
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8781
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8782
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8783
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8784
            /* 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: 40
diff changeset
  8785
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8786
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8787
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8788
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8789
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8790
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8791
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8792
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8793
            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
  8794
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8795
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8796
                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
  8797
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8798
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8799
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8800
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8801
            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
  8802
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8803
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8804
    }/*function_string_to_lint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8805
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8806
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8807
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8808
 *STRING_TO_USINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8809
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8810
    case function_string_to_usint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8811
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8812
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8813
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8814
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8815
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8816
            /* 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: 40
diff changeset
  8817
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8818
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8819
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8820
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8821
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8822
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8823
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8824
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8825
            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
  8826
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8827
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8828
                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
  8829
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8830
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8831
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8832
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8833
            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
  8834
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8835
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8836
    }/*function_string_to_usint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8837
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8838
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8839
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8840
 *STRING_TO_UINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8841
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8842
    case function_string_to_uint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8843
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8844
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8845
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8846
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8847
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8848
            /* 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: 40
diff changeset
  8849
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8850
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8851
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8852
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8853
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8854
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8855
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8856
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8857
            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
  8858
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8859
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8860
                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
  8861
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8862
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8863
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8864
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8865
            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
  8866
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8867
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8868
    }/*function_string_to_uint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8869
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8870
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8871
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8872
 *STRING_TO_UDINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8873
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8874
    case function_string_to_udint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8875
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8876
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8877
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8878
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8879
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8880
            /* 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: 40
diff changeset
  8881
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8882
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8883
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8884
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8885
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8886
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8887
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8888
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8889
            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
  8890
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8891
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8892
                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
  8893
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8894
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8895
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8896
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8897
            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
  8898
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8899
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8900
    }/*function_string_to_udint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8901
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8902
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8903
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8904
 *STRING_TO_ULINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8905
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8906
    case function_string_to_ulint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8907
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8908
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8909
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8910
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8911
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8912
            /* 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: 40
diff changeset
  8913
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8914
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8915
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8916
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8917
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8918
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8919
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8920
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8921
            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
  8922
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8923
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8924
                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
  8925
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8926
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8927
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8928
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8929
            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
  8930
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8931
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8932
    }/*function_string_to_ulint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8933
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8934
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8935
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8936
 *STRING_TO_REAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8937
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8938
    case function_string_to_real :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8939
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8940
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8941
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8942
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8943
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8944
            /* 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: 40
diff changeset
  8945
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8946
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8947
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8948
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8949
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8950
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8951
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8952
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8953
            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
  8954
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8955
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8956
                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
  8957
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8958
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8959
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8960
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8961
            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
  8962
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8963
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8964
    }/*function_string_to_real*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8965
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8966
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8967
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8968
 *STRING_TO_LREAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8969
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8970
    case function_string_to_lreal :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8971
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8972
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8973
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8974
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8975
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8976
            /* 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: 40
diff changeset
  8977
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8978
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8979
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8980
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8981
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8982
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8983
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8984
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8985
            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
  8986
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8987
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8988
                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
  8989
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8990
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8991
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8992
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8993
            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
  8994
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8995
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8996
    }/*function_string_to_lreal*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8997
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8998
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  8999
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9000
 *STRING_TO_TIME
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9001
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9002
    case function_string_to_time :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9003
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9004
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9005
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9006
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9007
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9008
            /* 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: 40
diff changeset
  9009
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9010
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9011
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9012
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9013
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9014
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9015
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9016
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9017
            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: 40
diff changeset
  9018
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9019
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9020
                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: 40
diff changeset
  9021
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9022
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9023
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9024
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9025
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9026
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9027
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9028
    }/*function_string_to_time*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9029
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9030
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9031
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9032
 *STRING_TO_DATE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9033
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9034
    case function_string_to_date :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9035
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9036
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9037
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9038
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9039
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9040
            /* 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: 40
diff changeset
  9041
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9042
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9043
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9044
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9045
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9046
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9047
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9048
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9049
            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: 40
diff changeset
  9050
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9051
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9052
                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: 40
diff changeset
  9053
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9054
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9055
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9056
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9057
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9058
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9059
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9060
    }/*function_string_to_date*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9061
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9062
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9063
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9064
 *STRING_TO_TOD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9065
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9066
    case function_string_to_tod :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9067
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9068
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9069
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9070
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9071
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9072
            /* 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: 40
diff changeset
  9073
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9074
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9075
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9076
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9077
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9078
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9079
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9080
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9081
            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: 40
diff changeset
  9082
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9083
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9084
                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: 40
diff changeset
  9085
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9086
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9087
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9088
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9089
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9090
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9091
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9092
    }/*function_string_to_tod*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9093
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9094
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9095
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9096
 *STRING_TO_DT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9097
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9098
    case function_string_to_dt :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9099
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9100
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9101
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9102
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9103
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9104
            /* 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: 40
diff changeset
  9105
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9106
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9107
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9108
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9109
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9110
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9111
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9112
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9113
            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: 40
diff changeset
  9114
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9115
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9116
                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: 40
diff changeset
  9117
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9118
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9119
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9120
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9121
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9122
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9123
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9124
    }/*function_string_to_dt*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9125
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9126
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9127
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9128
 *STRING_TO_BYTE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9129
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9130
    case function_string_to_byte :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9131
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
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: 40
diff changeset
  9133
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9134
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9135
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9136
            /* 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: 40
diff changeset
  9137
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9138
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9139
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9140
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9141
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9142
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9143
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9144
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9145
            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: 40
diff changeset
  9146
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9147
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9148
                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: 40
diff changeset
  9149
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9150
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9151
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9152
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9153
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9154
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9155
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9156
    }/*function_string_to_byte*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9157
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9158
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9159
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9160
 *STRING_TO_WORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9161
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9162
    case function_string_to_word :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9163
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9164
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9165
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9166
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9167
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
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: 40
diff changeset
  9169
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9170
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9171
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9172
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9173
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9174
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9175
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9176
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9177
            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: 40
diff changeset
  9178
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9179
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9180
                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: 40
diff changeset
  9181
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9182
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9183
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9184
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9185
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9186
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9187
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9188
    }/*function_string_to_word*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9189
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9190
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9191
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9192
 *STRING_TO_DWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9193
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9194
    case function_string_to_dword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9195
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9196
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9197
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9198
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9199
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9200
            /* 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: 40
diff changeset
  9201
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9202
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9203
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9204
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9205
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9206
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9207
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9208
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9209
            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: 40
diff changeset
  9210
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9211
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9212
                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: 40
diff changeset
  9213
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9214
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9215
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9216
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9217
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9218
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9219
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9220
    }/*function_string_to_dword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9221
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9222
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9223
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9224
 *STRING_TO_LWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9225
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9226
    case function_string_to_lword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9227
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9228
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9229
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9230
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9231
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9232
            /* 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: 40
diff changeset
  9233
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9234
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9235
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9236
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9237
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9238
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9239
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9240
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9241
            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: 40
diff changeset
  9242
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9243
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9244
                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: 40
diff changeset
  9245
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9246
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9247
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9248
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9249
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9250
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9251
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9252
    }/*function_string_to_lword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9253
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9254
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9255
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9256
 *BYTE_TO_BOOL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9257
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9258
    case function_byte_to_bool :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9259
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9260
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9261
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9262
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9263
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9264
            /* 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: 40
diff changeset
  9265
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9266
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9267
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9268
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9269
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9270
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9271
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9272
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9273
            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: 40
diff changeset
  9274
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9275
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9276
                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: 40
diff changeset
  9277
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9278
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9279
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9280
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9281
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9282
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9283
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9284
    }/*function_byte_to_bool*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9285
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9286
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9287
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9288
 *BYTE_TO_SINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9289
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9290
    case function_byte_to_sint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9291
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9292
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9293
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9294
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9295
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9296
            /* 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: 40
diff changeset
  9297
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9298
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9299
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9300
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9301
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9302
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9303
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9304
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9305
            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: 40
diff changeset
  9306
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9307
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9308
                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: 40
diff changeset
  9309
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9310
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9311
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9312
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9313
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9314
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9315
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9316
    }/*function_byte_to_sint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9317
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9318
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9319
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9320
 *BYTE_TO_INT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9321
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9322
    case function_byte_to_int :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9323
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9324
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9325
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9326
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9327
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9328
            /* 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: 40
diff changeset
  9329
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9330
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9331
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9332
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9333
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9334
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9335
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9336
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9337
            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: 40
diff changeset
  9338
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9339
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9340
                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: 40
diff changeset
  9341
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9342
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9343
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9344
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9345
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9346
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9347
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9348
    }/*function_byte_to_int*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9349
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9350
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9351
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9352
 *BYTE_TO_DINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9353
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9354
    case function_byte_to_dint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9355
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9356
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9357
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9358
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9359
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9360
            /* 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: 40
diff changeset
  9361
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9362
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9363
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9364
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9365
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9366
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9367
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9368
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9369
            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: 40
diff changeset
  9370
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9371
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9372
                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: 40
diff changeset
  9373
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9374
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9375
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9376
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9377
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9378
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9379
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9380
    }/*function_byte_to_dint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9381
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9382
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9383
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9384
 *BYTE_TO_LINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9385
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9386
    case function_byte_to_lint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9387
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9388
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9389
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9390
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9391
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9392
            /* 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: 40
diff changeset
  9393
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9394
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9395
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9396
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9397
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9398
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9399
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9400
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9401
            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: 40
diff changeset
  9402
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9403
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9404
                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: 40
diff changeset
  9405
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9406
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9407
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9408
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9409
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9410
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9411
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9412
    }/*function_byte_to_lint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9413
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9414
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9415
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9416
 *BYTE_TO_USINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9417
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9418
    case function_byte_to_usint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9419
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9420
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9421
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9422
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9423
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9424
            /* 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: 40
diff changeset
  9425
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9426
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9427
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9428
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9429
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9430
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9431
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9432
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9433
            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: 40
diff changeset
  9434
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9435
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9436
                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: 40
diff changeset
  9437
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9438
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9439
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9440
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9441
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9442
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9443
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9444
    }/*function_byte_to_usint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9445
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9446
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9447
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9448
 *BYTE_TO_UINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9449
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9450
    case function_byte_to_uint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9451
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9452
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9453
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9454
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9455
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9456
            /* 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: 40
diff changeset
  9457
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9458
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9459
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9460
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9461
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9462
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9463
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9464
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9465
            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: 40
diff changeset
  9466
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9467
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9468
                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: 40
diff changeset
  9469
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9470
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9471
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9472
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9473
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9474
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9475
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9476
    }/*function_byte_to_uint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9477
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9478
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9479
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9480
 *BYTE_TO_UDINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9481
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9482
    case function_byte_to_udint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9483
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9484
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9485
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9486
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9487
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9488
            /* 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: 40
diff changeset
  9489
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9490
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9491
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9492
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9493
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9494
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9495
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9496
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9497
            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: 40
diff changeset
  9498
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9499
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9500
                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: 40
diff changeset
  9501
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9502
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9503
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9504
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9505
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9506
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9507
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9508
    }/*function_byte_to_udint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9509
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9510
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9511
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9512
 *BYTE_TO_ULINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9513
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9514
    case function_byte_to_ulint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9515
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9516
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9517
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9518
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9519
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9520
            /* 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: 40
diff changeset
  9521
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9522
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9523
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9524
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9525
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9526
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9527
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9528
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9529
            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: 40
diff changeset
  9530
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9531
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9532
                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: 40
diff changeset
  9533
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9534
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9535
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9536
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9537
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9538
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9539
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9540
    }/*function_byte_to_ulint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9541
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9542
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9543
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9544
 *BYTE_TO_REAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9545
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9546
    case function_byte_to_real :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9547
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9548
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9549
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9550
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9551
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9552
            /* 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: 40
diff changeset
  9553
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9554
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9555
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9556
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9557
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9558
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9559
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9560
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9561
            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: 40
diff changeset
  9562
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9563
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9564
                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: 40
diff changeset
  9565
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9566
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9567
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9568
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9569
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9570
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9571
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9572
    }/*function_byte_to_real*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9573
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9574
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9575
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9576
 *BYTE_TO_LREAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9577
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9578
    case function_byte_to_lreal :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9579
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9580
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9581
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9582
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9583
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9584
            /* 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: 40
diff changeset
  9585
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9586
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9587
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9588
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9589
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9590
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9591
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9592
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9593
            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: 40
diff changeset
  9594
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9595
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9596
                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: 40
diff changeset
  9597
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9598
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9599
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9600
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9601
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9602
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9603
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9604
    }/*function_byte_to_lreal*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9605
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9606
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9607
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9608
 *BYTE_TO_TIME
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9609
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9610
    case function_byte_to_time :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9611
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9612
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9613
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9614
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9615
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9616
            /* 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: 40
diff changeset
  9617
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9618
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9619
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9620
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9621
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9622
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9623
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9624
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9625
            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: 40
diff changeset
  9626
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9627
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9628
                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: 40
diff changeset
  9629
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9630
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9631
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9632
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9633
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9634
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9635
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9636
    }/*function_byte_to_time*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9637
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9638
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9639
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9640
 *BYTE_TO_DATE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9641
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9642
    case function_byte_to_date :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9643
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9644
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9645
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9646
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9647
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9648
            /* 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: 40
diff changeset
  9649
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9650
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9651
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9652
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9653
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9654
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9655
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9656
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9657
            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: 40
diff changeset
  9658
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9659
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9660
                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: 40
diff changeset
  9661
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9662
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9663
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9664
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9665
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9666
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9667
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9668
    }/*function_byte_to_date*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9669
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9670
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9671
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9672
 *BYTE_TO_TOD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9673
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9674
    case function_byte_to_tod :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9675
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9676
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9677
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9678
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9679
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9680
            /* 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: 40
diff changeset
  9681
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9682
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9683
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9684
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9685
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9686
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9687
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9688
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9689
            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: 40
diff changeset
  9690
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9691
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9692
                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: 40
diff changeset
  9693
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9694
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9695
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9696
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9697
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9698
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9699
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9700
    }/*function_byte_to_tod*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9701
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9702
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9703
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9704
 *BYTE_TO_DT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9705
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9706
    case function_byte_to_dt :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9707
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9708
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9709
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9710
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9711
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9712
            /* 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: 40
diff changeset
  9713
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9714
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9715
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9716
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9717
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9718
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9719
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9720
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9721
            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: 40
diff changeset
  9722
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9723
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9724
                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: 40
diff changeset
  9725
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9726
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9727
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9728
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9729
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9730
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9731
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9732
    }/*function_byte_to_dt*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9733
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9734
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9735
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9736
 *BYTE_TO_STRING
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9737
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9738
    case function_byte_to_string :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9739
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9740
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9741
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9742
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9743
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9744
            /* 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: 40
diff changeset
  9745
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9746
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9747
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9748
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9749
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9750
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9751
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9752
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9753
            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
  9754
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  9755
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  9756
                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
  9757
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  9758
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  9759
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  9760
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  9761
            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
  9762
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  9763
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9764
    }/*function_byte_to_string*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9765
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9766
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9767
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9768
 *BYTE_TO_WORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9769
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9770
    case function_byte_to_word :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9771
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9772
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9773
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9774
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9775
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9776
            /* 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: 40
diff changeset
  9777
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9778
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9779
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9780
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9781
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9782
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9783
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9784
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9785
            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: 40
diff changeset
  9786
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9787
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9788
                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: 40
diff changeset
  9789
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9790
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9791
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9792
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9793
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9794
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9795
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9796
    }/*function_byte_to_word*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9797
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9798
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9799
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9800
 *BYTE_TO_DWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9801
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9802
    case function_byte_to_dword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9803
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9804
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9805
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9806
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9807
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9808
            /* 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: 40
diff changeset
  9809
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9810
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9811
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9812
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9813
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9814
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9815
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9816
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9817
            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: 40
diff changeset
  9818
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9819
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9820
                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: 40
diff changeset
  9821
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9822
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9823
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9824
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9825
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9826
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9827
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9828
    }/*function_byte_to_dword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9829
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9830
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9831
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9832
 *BYTE_TO_LWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9833
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9834
    case function_byte_to_lword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9835
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9836
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9837
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9838
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9839
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9840
            /* 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: 40
diff changeset
  9841
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9842
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9843
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9844
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9845
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9846
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9847
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9848
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9849
            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: 40
diff changeset
  9850
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9851
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9852
                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: 40
diff changeset
  9853
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9854
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9855
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9856
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9857
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9858
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9859
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9860
    }/*function_byte_to_lword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9861
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9862
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9863
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9864
 *WORD_TO_BOOL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9865
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9866
    case function_word_to_bool :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9867
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9868
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9869
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9870
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9871
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9872
            /* 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: 40
diff changeset
  9873
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9874
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9875
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9876
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9877
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9878
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9879
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9880
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9881
            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: 40
diff changeset
  9882
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9883
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9884
                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: 40
diff changeset
  9885
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9886
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9887
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9888
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9889
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9890
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9891
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9892
    }/*function_word_to_bool*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9893
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9894
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9895
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9896
 *WORD_TO_SINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9897
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9898
    case function_word_to_sint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9899
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9900
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9901
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9902
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9903
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9904
            /* 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: 40
diff changeset
  9905
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9906
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9907
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9908
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9909
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9910
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9911
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9912
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9913
            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: 40
diff changeset
  9914
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9915
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9916
                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: 40
diff changeset
  9917
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9918
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9919
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9920
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9921
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9922
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9923
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9924
    }/*function_word_to_sint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9925
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9926
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9927
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9928
 *WORD_TO_INT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9929
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9930
    case function_word_to_int :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9931
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9932
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9933
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9934
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9935
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9936
            /* 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: 40
diff changeset
  9937
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9938
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9939
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9940
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9941
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9942
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9943
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9944
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9945
            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: 40
diff changeset
  9946
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9947
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9948
                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: 40
diff changeset
  9949
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9950
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9951
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9952
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9953
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9954
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9955
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9956
    }/*function_word_to_int*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9957
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9958
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9959
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9960
 *WORD_TO_DINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9961
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9962
    case function_word_to_dint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9963
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9964
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9965
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9966
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9967
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9968
            /* 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: 40
diff changeset
  9969
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9970
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9971
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9972
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9973
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9974
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9975
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9976
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9977
            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: 40
diff changeset
  9978
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9979
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9980
                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: 40
diff changeset
  9981
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9982
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9983
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9984
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9985
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9986
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9987
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9988
    }/*function_word_to_dint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9989
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9990
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9991
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9992
 *WORD_TO_LINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9993
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9994
    case function_word_to_lint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9995
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9996
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9997
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9998
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
  9999
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10000
            /* 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: 40
diff changeset
 10001
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10002
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10003
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10004
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10005
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10006
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10007
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10008
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10009
            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: 40
diff changeset
 10010
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10011
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10012
                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: 40
diff changeset
 10013
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10014
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10015
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10016
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10017
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10018
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10019
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10020
    }/*function_word_to_lint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10021
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10022
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10023
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10024
 *WORD_TO_USINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10025
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10026
    case function_word_to_usint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10027
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10028
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10029
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10030
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10031
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10032
            /* 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: 40
diff changeset
 10033
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10034
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10035
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10036
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10037
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10038
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10039
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10040
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10041
            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: 40
diff changeset
 10042
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10043
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10044
                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: 40
diff changeset
 10045
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10046
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10047
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10048
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10049
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10050
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10051
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10052
    }/*function_word_to_usint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10053
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10054
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10055
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10056
 *WORD_TO_UINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10057
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10058
    case function_word_to_uint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10059
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10060
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10061
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10062
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10063
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10064
            /* 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: 40
diff changeset
 10065
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10066
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10067
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10068
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10069
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10070
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10071
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10072
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10073
            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: 40
diff changeset
 10074
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10075
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10076
                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: 40
diff changeset
 10077
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10078
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10079
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10080
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10081
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10082
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10083
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10084
    }/*function_word_to_uint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10085
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10086
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10087
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10088
 *WORD_TO_UDINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10089
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10090
    case function_word_to_udint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10091
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10092
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10093
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10094
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10095
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10096
            /* 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: 40
diff changeset
 10097
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10098
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10099
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10100
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10101
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10102
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10103
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10104
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10105
            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: 40
diff changeset
 10106
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10107
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10108
                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: 40
diff changeset
 10109
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10110
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10111
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10112
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10113
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10114
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10115
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10116
    }/*function_word_to_udint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10117
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10118
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10119
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10120
 *WORD_TO_ULINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10121
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10122
    case function_word_to_ulint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10123
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10124
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10125
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10126
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10127
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10128
            /* 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: 40
diff changeset
 10129
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10130
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10131
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10132
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10133
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10134
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10135
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10136
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10137
            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: 40
diff changeset
 10138
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10139
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10140
                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: 40
diff changeset
 10141
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10142
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10143
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10144
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10145
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10146
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10147
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10148
    }/*function_word_to_ulint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10149
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10150
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10151
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10152
 *WORD_TO_REAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10153
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10154
    case function_word_to_real :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10155
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10156
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10157
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10158
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10159
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10160
            /* 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: 40
diff changeset
 10161
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10162
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10163
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10164
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10165
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10166
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10167
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10168
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10169
            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: 40
diff changeset
 10170
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10171
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10172
                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: 40
diff changeset
 10173
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10174
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10175
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10176
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10177
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10178
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10179
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10180
    }/*function_word_to_real*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10181
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10182
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10183
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10184
 *WORD_TO_LREAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10185
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10186
    case function_word_to_lreal :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10187
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10188
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10189
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10190
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10191
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10192
            /* 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: 40
diff changeset
 10193
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10194
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10195
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10196
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10197
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10198
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10199
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10200
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10201
            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: 40
diff changeset
 10202
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10203
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10204
                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: 40
diff changeset
 10205
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10206
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10207
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10208
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10209
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10210
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10211
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10212
    }/*function_word_to_lreal*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10213
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10214
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10215
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10216
 *WORD_TO_TIME
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10217
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10218
    case function_word_to_time :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10219
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10220
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10221
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10222
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10223
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10224
            /* 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: 40
diff changeset
 10225
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10226
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10227
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10228
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10229
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10230
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10231
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10232
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10233
            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: 40
diff changeset
 10234
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10235
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10236
                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: 40
diff changeset
 10237
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10238
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10239
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10240
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10241
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10242
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10243
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10244
    }/*function_word_to_time*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10245
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10246
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10247
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10248
 *WORD_TO_DATE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10249
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10250
    case function_word_to_date :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10251
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10252
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10253
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10254
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10255
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10256
            /* 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: 40
diff changeset
 10257
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10258
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10259
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10260
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10261
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10262
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10263
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10264
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10265
            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: 40
diff changeset
 10266
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10267
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10268
                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: 40
diff changeset
 10269
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10270
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10271
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10272
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10273
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10274
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10275
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10276
    }/*function_word_to_date*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10277
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10278
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10279
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10280
 *WORD_TO_TOD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10281
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10282
    case function_word_to_tod :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10283
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10284
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10285
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10286
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10287
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10288
            /* 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: 40
diff changeset
 10289
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10290
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10291
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10292
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10293
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10294
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10295
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10296
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10297
            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: 40
diff changeset
 10298
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10299
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10300
                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: 40
diff changeset
 10301
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10302
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10303
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10304
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10305
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10306
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10307
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10308
    }/*function_word_to_tod*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10309
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10310
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10311
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10312
 *WORD_TO_DT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10313
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10314
    case function_word_to_dt :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10315
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10316
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10317
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10318
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10319
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10320
            /* 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: 40
diff changeset
 10321
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10322
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10323
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10324
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10325
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10326
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10327
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10328
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10329
            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: 40
diff changeset
 10330
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10331
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10332
                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: 40
diff changeset
 10333
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10334
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10335
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10336
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10337
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10338
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10339
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10340
    }/*function_word_to_dt*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10341
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10342
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10343
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10344
 *WORD_TO_STRING
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10345
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10346
    case function_word_to_string :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10347
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10348
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10349
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10350
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10351
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10352
            /* 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: 40
diff changeset
 10353
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10354
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10355
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10356
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10357
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10358
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10359
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10360
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10361
            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: 40
diff changeset
 10362
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10363
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10364
                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: 40
diff changeset
 10365
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10366
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10367
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10368
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10369
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10370
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10371
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10372
    }/*function_word_to_string*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10373
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10374
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10375
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10376
 *WORD_TO_BYTE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10377
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10378
    case function_word_to_byte :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10379
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10380
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10381
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10382
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10383
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10384
            /* 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: 40
diff changeset
 10385
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10386
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10387
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10388
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10389
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10390
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10391
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10392
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10393
            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: 34
diff changeset
 10394
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 10395
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 10396
                symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 10397
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 10398
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 10399
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 10400
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 10401
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 10402
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 10403
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10404
    }/*function_word_to_byte*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10405
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10406
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10407
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10408
 *WORD_TO_DWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10409
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10410
    case function_word_to_dword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10411
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10412
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10413
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10414
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10415
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10416
            /* 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: 40
diff changeset
 10417
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10418
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10419
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10420
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10421
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10422
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10423
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10424
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10425
            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: 40
diff changeset
 10426
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10427
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10428
                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: 40
diff changeset
 10429
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10430
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10431
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10432
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10433
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10434
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10435
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10436
    }/*function_word_to_dword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10437
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10438
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10439
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10440
 *WORD_TO_LWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10441
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10442
    case function_word_to_lword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10443
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10444
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10445
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10446
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10447
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10448
            /* 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: 40
diff changeset
 10449
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10450
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10451
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10452
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10453
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10454
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10455
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10456
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10457
            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: 40
diff changeset
 10458
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10459
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10460
                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: 40
diff changeset
 10461
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10462
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10463
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10464
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10465
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10466
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10467
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10468
    }/*function_word_to_lword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10469
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10470
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10471
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10472
 *DWORD_TO_BOOL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10473
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10474
    case function_dword_to_bool :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10475
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10476
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10477
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10478
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10479
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10480
            /* 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: 40
diff changeset
 10481
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10482
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10483
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10484
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10485
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10486
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10487
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10488
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10489
            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: 40
diff changeset
 10490
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10491
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10492
                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: 40
diff changeset
 10493
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10494
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10495
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10496
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10497
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10498
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10499
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10500
    }/*function_dword_to_bool*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10501
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10502
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10503
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10504
 *DWORD_TO_SINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10505
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10506
    case function_dword_to_sint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10507
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10508
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10509
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10510
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10511
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10512
            /* 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: 40
diff changeset
 10513
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10514
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10515
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10516
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10517
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10518
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10519
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10520
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10521
            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: 40
diff changeset
 10522
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10523
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10524
                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: 40
diff changeset
 10525
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10526
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10527
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10528
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10529
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10530
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10531
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10532
    }/*function_dword_to_sint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10533
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10534
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10535
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10536
 *DWORD_TO_INT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10537
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10538
    case function_dword_to_int :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10539
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10540
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10541
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10542
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10543
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10544
            /* 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: 40
diff changeset
 10545
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10546
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10547
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10548
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10549
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10550
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10551
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10552
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10553
            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: 40
diff changeset
 10554
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10555
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10556
                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: 40
diff changeset
 10557
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10558
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10559
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10560
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10561
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10562
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10563
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10564
    }/*function_dword_to_int*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10565
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10566
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10567
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10568
 *DWORD_TO_DINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10569
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10570
    case function_dword_to_dint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10571
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10572
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10573
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10574
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10575
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10576
            /* 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: 40
diff changeset
 10577
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10578
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10579
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10580
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10581
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10582
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10583
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10584
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10585
            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: 40
diff changeset
 10586
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10587
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10588
                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: 40
diff changeset
 10589
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10590
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10591
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10592
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10593
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10594
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10595
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10596
    }/*function_dword_to_dint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10597
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10598
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10599
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10600
 *DWORD_TO_LINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10601
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10602
    case function_dword_to_lint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10603
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10604
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10605
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10606
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10607
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10608
            /* 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: 40
diff changeset
 10609
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10610
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10611
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10612
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10613
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10614
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10615
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10616
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10617
            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: 40
diff changeset
 10618
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10619
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10620
                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: 40
diff changeset
 10621
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10622
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10623
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10624
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10625
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10626
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10627
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10628
    }/*function_dword_to_lint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10629
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10630
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10631
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10632
 *DWORD_TO_USINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10633
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10634
    case function_dword_to_usint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10635
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10636
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10637
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10638
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10639
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10640
            /* 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: 40
diff changeset
 10641
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10642
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10643
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10644
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10645
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10646
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10647
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10648
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10649
            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: 40
diff changeset
 10650
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10651
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10652
                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: 40
diff changeset
 10653
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10654
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10655
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10656
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10657
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10658
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10659
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10660
    }/*function_dword_to_usint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10661
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10662
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10663
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10664
 *DWORD_TO_UINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10665
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10666
    case function_dword_to_uint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10667
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10668
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10669
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10670
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10671
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10672
            /* 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: 40
diff changeset
 10673
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10674
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10675
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10676
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10677
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10678
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10679
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10680
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10681
            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: 40
diff changeset
 10682
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10683
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10684
                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: 40
diff changeset
 10685
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10686
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10687
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10688
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10689
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10690
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10691
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10692
    }/*function_dword_to_uint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10693
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10694
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10695
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10696
 *DWORD_TO_UDINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10697
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10698
    case function_dword_to_udint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10699
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10700
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10701
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10702
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10703
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10704
            /* 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: 40
diff changeset
 10705
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10706
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10707
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10708
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10709
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10710
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10711
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10712
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10713
            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: 40
diff changeset
 10714
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10715
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10716
                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: 40
diff changeset
 10717
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10718
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10719
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10720
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10721
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10722
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10723
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10724
    }/*function_dword_to_udint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10725
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10726
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10727
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10728
 *DWORD_TO_ULINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10729
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10730
    case function_dword_to_ulint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10731
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10732
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10733
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10734
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10735
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10736
            /* 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: 40
diff changeset
 10737
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10738
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10739
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10740
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10741
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10742
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10743
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10744
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10745
            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: 40
diff changeset
 10746
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10747
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10748
                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: 40
diff changeset
 10749
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10750
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10751
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10752
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10753
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10754
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10755
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10756
    }/*function_dword_to_ulint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10757
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10758
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10759
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10760
 *DWORD_TO_REAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10761
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10762
    case function_dword_to_real :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10763
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10764
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10765
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10766
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10767
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10768
            /* 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: 40
diff changeset
 10769
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10770
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10771
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10772
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10773
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10774
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10775
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10776
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10777
            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: 40
diff changeset
 10778
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10779
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10780
                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: 40
diff changeset
 10781
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10782
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10783
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10784
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10785
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10786
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10787
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10788
    }/*function_dword_to_real*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10789
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10790
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10791
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10792
 *DWORD_TO_LREAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10793
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10794
    case function_dword_to_lreal :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10795
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10796
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10797
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10798
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10799
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10800
            /* 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: 40
diff changeset
 10801
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10802
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10803
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10804
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10805
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10806
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10807
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10808
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10809
            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: 40
diff changeset
 10810
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10811
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10812
                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: 40
diff changeset
 10813
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10814
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10815
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10816
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10817
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10818
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10819
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10820
    }/*function_dword_to_lreal*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10821
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10822
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10823
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10824
 *DWORD_TO_TIME
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10825
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10826
    case function_dword_to_time :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10827
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10828
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10829
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10830
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10831
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10832
            /* 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: 40
diff changeset
 10833
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10834
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10835
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10836
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10837
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10838
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10839
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10840
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10841
            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: 40
diff changeset
 10842
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10843
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10844
                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: 40
diff changeset
 10845
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10846
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10847
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10848
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10849
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10850
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10851
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10852
    }/*function_dword_to_time*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10853
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10854
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10855
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10856
 *DWORD_TO_DATE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10857
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10858
    case function_dword_to_date :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10859
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10860
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10861
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10862
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10863
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10864
            /* 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: 40
diff changeset
 10865
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10866
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10867
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10868
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10869
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10870
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10871
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10872
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10873
            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: 40
diff changeset
 10874
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10875
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10876
                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: 40
diff changeset
 10877
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10878
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10879
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10880
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10881
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10882
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10883
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10884
    }/*function_dword_to_date*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10885
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10886
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10887
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10888
 *DWORD_TO_TOD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10889
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10890
    case function_dword_to_tod :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10891
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10892
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10893
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10894
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10895
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10896
            /* 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: 40
diff changeset
 10897
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10898
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10899
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10900
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10901
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10902
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10903
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10904
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10905
            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: 40
diff changeset
 10906
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10907
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10908
                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: 40
diff changeset
 10909
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10910
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10911
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10912
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10913
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10914
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10915
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10916
    }/*function_dword_to_tod*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10917
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10918
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10919
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10920
 *DWORD_TO_DT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10921
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10922
    case function_dword_to_dt :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10923
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10924
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10925
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10926
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10927
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10928
            /* 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: 40
diff changeset
 10929
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10930
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10931
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10932
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10933
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10934
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10935
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10936
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10937
            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: 40
diff changeset
 10938
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10939
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10940
                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: 40
diff changeset
 10941
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10942
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10943
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10944
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10945
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10946
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10947
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10948
    }/*function_dword_to_dt*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10949
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10950
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10951
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10952
 *DWORD_TO_STRING
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10953
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10954
    case function_dword_to_string :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10955
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10956
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10957
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10958
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10959
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10960
            /* 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: 40
diff changeset
 10961
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10962
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10963
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10964
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10965
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10966
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10967
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10968
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10969
            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: 40
diff changeset
 10970
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10971
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10972
                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: 40
diff changeset
 10973
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10974
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10975
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10976
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10977
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10978
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10979
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10980
    }/*function_dword_to_string*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10981
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10982
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10983
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10984
 *DWORD_TO_BYTE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10985
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10986
    case function_dword_to_byte :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10987
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10988
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10989
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10990
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10991
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10992
            /* 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: 40
diff changeset
 10993
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10994
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10995
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10996
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10997
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10998
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 10999
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11000
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11001
            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: 40
diff changeset
 11002
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11003
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11004
                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: 40
diff changeset
 11005
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11006
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11007
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11008
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11009
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11010
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11011
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11012
    }/*function_dword_to_byte*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11013
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11014
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11015
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11016
 *DWORD_TO_WORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11017
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11018
    case function_dword_to_word :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11019
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11020
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11021
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11022
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11023
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11024
            /* 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: 40
diff changeset
 11025
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11026
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11027
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11028
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11029
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11030
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11031
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11032
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11033
            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: 34
diff changeset
 11034
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 11035
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 11036
                symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 11037
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 11038
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 11039
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 11040
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 11041
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 11042
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 11043
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11044
    }/*function_dword_to_word*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11045
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11046
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11047
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11048
 *DWORD_TO_LWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11049
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11050
    case function_dword_to_lword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11051
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11052
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11053
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11054
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11055
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11056
            /* 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: 40
diff changeset
 11057
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11058
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11059
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11060
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11061
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11062
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11063
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11064
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11065
            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: 40
diff changeset
 11066
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11067
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11068
                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: 40
diff changeset
 11069
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11070
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11071
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11072
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11073
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11074
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11075
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11076
    }/*function_dword_to_lword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11077
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11078
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11079
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11080
 *LWORD_TO_BOOL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11081
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11082
    case function_lword_to_bool :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11083
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11084
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11085
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11086
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11087
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11088
            /* 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: 40
diff changeset
 11089
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11090
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11091
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11092
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11093
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11094
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11095
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11096
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11097
            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: 40
diff changeset
 11098
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11099
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11100
                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: 40
diff changeset
 11101
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11102
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11103
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11104
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11105
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11106
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11107
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11108
    }/*function_lword_to_bool*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11109
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11110
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11111
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11112
 *LWORD_TO_SINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11113
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11114
    case function_lword_to_sint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11115
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11116
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11117
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11118
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11119
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11120
            /* 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: 40
diff changeset
 11121
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11122
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11123
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11124
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11125
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11126
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11127
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11128
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11129
            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: 40
diff changeset
 11130
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11131
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11132
                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: 40
diff changeset
 11133
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11134
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11135
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11136
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11137
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11138
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11139
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11140
    }/*function_lword_to_sint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11141
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11142
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11143
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11144
 *LWORD_TO_INT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11145
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11146
    case function_lword_to_int :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11147
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11148
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11149
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11150
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11151
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11152
            /* 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: 40
diff changeset
 11153
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11154
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11155
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11156
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11157
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11158
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11159
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11160
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11161
            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: 40
diff changeset
 11162
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11163
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11164
                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: 40
diff changeset
 11165
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11166
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11167
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11168
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11169
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11170
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11171
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11172
    }/*function_lword_to_int*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11173
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11174
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11175
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11176
 *LWORD_TO_DINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11177
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11178
    case function_lword_to_dint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11179
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11180
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11181
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11182
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11183
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11184
            /* 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: 40
diff changeset
 11185
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11186
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11187
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11188
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11189
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11190
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11191
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11192
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11193
            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: 40
diff changeset
 11194
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11195
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11196
                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: 40
diff changeset
 11197
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11198
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11199
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11200
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11201
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11202
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11203
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11204
    }/*function_lword_to_dint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11205
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11206
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11207
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11208
 *LWORD_TO_LINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11209
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11210
    case function_lword_to_lint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11211
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11212
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11213
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11214
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11215
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11216
            /* 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: 40
diff changeset
 11217
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11218
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11219
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11220
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11221
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11222
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11223
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11224
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11225
            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: 40
diff changeset
 11226
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11227
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11228
                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: 40
diff changeset
 11229
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11230
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11231
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11232
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11233
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11234
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11235
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11236
    }/*function_lword_to_lint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11237
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11238
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11239
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11240
 *LWORD_TO_USINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11241
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11242
    case function_lword_to_usint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11243
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11244
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11245
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11246
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11247
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11248
            /* 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: 40
diff changeset
 11249
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11250
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11251
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11252
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11253
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11254
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11255
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11256
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11257
            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: 40
diff changeset
 11258
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11259
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11260
                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: 40
diff changeset
 11261
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11262
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11263
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11264
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11265
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11266
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11267
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11268
    }/*function_lword_to_usint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11269
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11270
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11271
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11272
 *LWORD_TO_UINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11273
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11274
    case function_lword_to_uint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11275
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11276
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11277
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11278
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11279
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11280
            /* 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: 40
diff changeset
 11281
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11282
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11283
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11284
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11285
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11286
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11287
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11288
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11289
            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: 40
diff changeset
 11290
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11291
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11292
                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: 40
diff changeset
 11293
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11294
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11295
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11296
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11297
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11298
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11299
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11300
    }/*function_lword_to_uint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11301
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11302
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11303
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11304
 *LWORD_TO_UDINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11305
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11306
    case function_lword_to_udint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11307
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11308
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11309
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11310
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11311
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11312
            /* 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: 40
diff changeset
 11313
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11314
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11315
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11316
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11317
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11318
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11319
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11320
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11321
            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: 40
diff changeset
 11322
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11323
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11324
                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: 40
diff changeset
 11325
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11326
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11327
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11328
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11329
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11330
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11331
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11332
    }/*function_lword_to_udint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11333
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11334
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11335
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11336
 *LWORD_TO_ULINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11337
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11338
    case function_lword_to_ulint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11339
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11340
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11341
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11342
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11343
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11344
            /* 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: 40
diff changeset
 11345
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11346
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11347
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11348
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11349
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11350
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11351
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11352
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11353
            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: 40
diff changeset
 11354
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11355
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11356
                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: 40
diff changeset
 11357
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11358
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11359
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11360
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11361
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11362
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11363
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11364
    }/*function_lword_to_ulint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11365
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11366
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11367
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11368
 *LWORD_TO_REAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11369
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11370
    case function_lword_to_real :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11371
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11372
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11373
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11374
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11375
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11376
            /* 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: 40
diff changeset
 11377
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11378
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11379
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11380
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11381
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11382
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11383
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11384
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11385
            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: 40
diff changeset
 11386
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11387
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11388
                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: 40
diff changeset
 11389
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11390
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11391
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11392
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11393
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11394
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11395
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11396
    }/*function_lword_to_real*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11397
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11398
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11399
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11400
 *LWORD_TO_LREAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11401
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11402
    case function_lword_to_lreal :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11403
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11404
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11405
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11406
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11407
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11408
            /* 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: 40
diff changeset
 11409
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11410
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11411
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11412
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11413
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11414
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11415
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11416
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11417
            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: 40
diff changeset
 11418
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11419
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11420
                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: 40
diff changeset
 11421
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11422
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11423
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11424
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11425
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11426
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11427
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11428
    }/*function_lword_to_lreal*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11429
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11430
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11431
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11432
 *LWORD_TO_TIME
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11433
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11434
    case function_lword_to_time :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11435
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11436
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11437
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11438
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11439
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11440
            /* 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: 40
diff changeset
 11441
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11442
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11443
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11444
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11445
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11446
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11447
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11448
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11449
            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: 40
diff changeset
 11450
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11451
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11452
                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: 40
diff changeset
 11453
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11454
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11455
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11456
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11457
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11458
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11459
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11460
    }/*function_lword_to_time*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11461
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11462
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11463
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11464
 *LWORD_TO_DATE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11465
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11466
    case function_lword_to_date :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11467
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11468
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11469
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11470
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11471
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11472
            /* 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: 40
diff changeset
 11473
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11474
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11475
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11476
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11477
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11478
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11479
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11480
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11481
            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: 40
diff changeset
 11482
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11483
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11484
                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: 40
diff changeset
 11485
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11486
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11487
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11488
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11489
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11490
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11491
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11492
    }/*function_lword_to_date*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11493
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11494
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11495
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11496
 *LWORD_TO_TOD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11497
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11498
    case function_lword_to_tod :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11499
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11500
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11501
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11502
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11503
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11504
            /* 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: 40
diff changeset
 11505
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11506
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11507
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11508
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11509
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11510
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11511
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11512
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11513
            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: 40
diff changeset
 11514
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11515
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11516
                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: 40
diff changeset
 11517
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11518
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11519
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11520
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11521
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11522
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11523
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11524
    }/*function_lword_to_tod*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11525
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11526
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11527
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11528
 *LWORD_TO_DT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11529
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11530
    case function_lword_to_dt :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11531
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11532
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11533
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11534
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11535
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11536
            /* 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: 40
diff changeset
 11537
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11538
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11539
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11540
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11541
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11542
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11543
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11544
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11545
            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: 40
diff changeset
 11546
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11547
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11548
                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: 40
diff changeset
 11549
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11550
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11551
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11552
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11553
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11554
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11555
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11556
    }/*function_lword_to_dt*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11557
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11558
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11559
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11560
 *LWORD_TO_STRING
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11561
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11562
    case function_lword_to_string :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11563
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11564
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11565
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11566
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11567
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11568
            /* 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: 40
diff changeset
 11569
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11570
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11571
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11572
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11573
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11574
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11575
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11576
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11577
            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: 40
diff changeset
 11578
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11579
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11580
                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: 40
diff changeset
 11581
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11582
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11583
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11584
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11585
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11586
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11587
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11588
    }/*function_lword_to_string*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11589
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11590
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11591
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11592
 *LWORD_TO_BYTE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11593
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11594
    case function_lword_to_byte :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11595
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11596
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11597
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11598
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11599
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11600
            /* 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: 40
diff changeset
 11601
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11602
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11603
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11604
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11605
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11606
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11607
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11608
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11609
            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: 40
diff changeset
 11610
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11611
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11612
                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: 40
diff changeset
 11613
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11614
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11615
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11616
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11617
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11618
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11619
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11620
    }/*function_lword_to_byte*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11621
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11622
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11623
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11624
 *LWORD_TO_WORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11625
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11626
    case function_lword_to_word :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11627
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11628
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11629
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11630
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11631
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11632
            /* 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: 40
diff changeset
 11633
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11634
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11635
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11636
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11637
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11638
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11639
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11640
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11641
            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: 40
diff changeset
 11642
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11643
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11644
                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: 40
diff changeset
 11645
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11646
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11647
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11648
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11649
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11650
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11651
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11652
    }/*function_lword_to_word*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11653
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11654
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11655
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11656
 *LWORD_TO_DWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11657
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11658
    case function_lword_to_dword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11659
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11660
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11661
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11662
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11663
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11664
            /* 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: 40
diff changeset
 11665
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11666
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11667
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11668
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11669
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11670
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11671
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11672
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11673
            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: 34
diff changeset
 11674
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 11675
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 11676
                symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 11677
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 11678
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 11679
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 11680
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 11681
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 11682
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 11683
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11684
    }/*function_lword_to_dword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11685
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11686
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11687
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11688
 *TRUNC
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11689
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11690
    case function_trunc :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11691
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11692
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11693
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11694
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11695
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11696
            /* 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: 40
diff changeset
 11697
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11698
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11699
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11700
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11701
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11702
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11703
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11704
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11705
            if(search_expression_type->is_real_type(IN_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11706
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11707
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11708
                symbol_c * return_type_symbol = &search_constant_type_c::constant_int_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11709
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11710
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11711
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11712
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11713
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11714
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11715
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11716
    }/*function_trunc*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11717
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11718
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11719
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11720
 *BCD_TO_USINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11721
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11722
    case function_bcd_to_usint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11723
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11724
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11725
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11726
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11727
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11728
            /* 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: 40
diff changeset
 11729
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11730
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11731
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11732
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11733
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11734
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11735
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11736
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11737
            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
 11738
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11739
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11740
                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
 11741
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11742
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11743
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11744
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11745
            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
 11746
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11747
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11748
    }/*function_bcd_to_usint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11749
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11750
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11751
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11752
 *BCD_TO_UINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11753
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11754
    case function_bcd_to_uint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11755
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11756
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11757
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11758
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11759
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11760
            /* 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: 40
diff changeset
 11761
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11762
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11763
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11764
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11765
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11766
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11767
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11768
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11769
            if(search_expression_type->is_same_type(&search_constant_type_c::word_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
 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
                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
 11773
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
            }
873a5b60a7ea Fixed -I library 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
            
873a5b60a7ea Fixed -I library 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
            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
 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
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11780
    }/*function_bcd_to_uint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11781
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11782
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11783
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11784
 *BCD_TO_UDINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11785
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11786
    case function_bcd_to_udint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11787
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11788
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11789
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11790
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11791
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11792
            /* 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: 40
diff changeset
 11793
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11794
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11795
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11796
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11797
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11798
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11799
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11800
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11801
            if(search_expression_type->is_same_type(&search_constant_type_c::dword_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
 11802
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11803
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11804
                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
 11805
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11806
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11807
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11808
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11809
            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
 11810
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11811
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11812
    }/*function_bcd_to_udint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11813
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11814
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11815
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11816
 *BCD_TO_ULINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11817
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11818
    case function_bcd_to_ulint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11819
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11820
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11821
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11822
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11823
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11824
            /* 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: 40
diff changeset
 11825
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11826
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11827
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11828
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11829
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11830
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11831
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11832
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11833
            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
 11834
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11835
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11836
                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
 11837
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11838
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11839
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11840
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11841
            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
 11842
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11843
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11844
    }/*function_bcd_to_ulint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11845
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11846
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11847
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11848
 *USINT_TO_BCD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11849
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11850
    case function_usint_to_bcd :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11851
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11852
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11853
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11854
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11855
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11856
            /* 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: 40
diff changeset
 11857
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11858
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11859
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11860
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11861
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11862
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11863
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11864
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11865
            if(search_expression_type->is_same_type(&search_constant_type_c::usint_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11866
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11867
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11868
                symbol_c * return_type_symbol = &search_constant_type_c::constant_int_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11869
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11870
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11871
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11872
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11873
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11874
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11875
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11876
    }/*function_usint_to_bcd*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11877
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11878
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11879
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11880
 *UINT_TO_BCD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11881
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11882
    case function_uint_to_bcd :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11883
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11884
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11885
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11886
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11887
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11888
            /* 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: 40
diff changeset
 11889
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11890
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11891
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11892
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11893
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11894
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11895
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11896
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11897
            if(search_expression_type->is_same_type(&search_constant_type_c::uint_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11898
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11899
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11900
                symbol_c * return_type_symbol = &search_constant_type_c::constant_int_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11901
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11902
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11903
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11904
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11905
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11906
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11907
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11908
    }/*function_uint_to_bcd*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11909
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11910
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11911
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11912
 *UDINT_TO_BCD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11913
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11914
    case function_udint_to_bcd :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11915
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11916
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11917
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11918
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11919
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11920
            /* 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: 40
diff changeset
 11921
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11922
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11923
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11924
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11925
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11926
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11927
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11928
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11929
            if(search_expression_type->is_same_type(&search_constant_type_c::udint_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11930
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11931
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11932
                symbol_c * return_type_symbol = &search_constant_type_c::constant_int_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11933
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11934
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11935
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11936
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11937
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11938
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11939
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11940
    }/*function_udint_to_bcd*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11941
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11942
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11943
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11944
 *ULINT_TO_BCD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11945
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11946
    case function_ulint_to_bcd :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11947
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11948
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11949
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11950
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11951
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11952
            /* 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: 40
diff changeset
 11953
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11954
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11955
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11956
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11957
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11958
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11959
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11960
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11961
            if(search_expression_type->is_same_type(&search_constant_type_c::ulint_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11962
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11963
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11964
                symbol_c * return_type_symbol = &search_constant_type_c::constant_int_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11965
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11966
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11967
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11968
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11969
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11970
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11971
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11972
    }/*function_ulint_to_bcd*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11973
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11974
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11975
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11976
 *DATE_AND_TIME_TO_TIME_OF_DAY
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11977
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11978
    case function_date_and_time_to_time_of_day :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11979
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11980
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11981
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11982
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11983
            identifier_c param_name("IN");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11984
            /* 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: 40
diff changeset
 11985
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11986
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11987
            /* Get the value from a foo(<param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11988
            if (IN_param_value == NULL)
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11989
              IN_param_value = function_call_param_iterator.next();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11990
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11991
            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 ;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11992
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 11993
            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: 34
diff changeset
 11994
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 11995
        
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11996
                symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11997
                return return_type_symbol;
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
            }
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
            ERROR;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12002
        }
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12003
        
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12004
    }/*function_date_and_time_to_time_of_day*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12005
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12006
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12007
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12008
 *DATE_AND_TIME_TO_DATE
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12009
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12010
    case function_date_and_time_to_date :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12011
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12012
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12013
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12014
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12015
            identifier_c param_name("IN");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12016
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12017
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12018
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12019
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12020
            if (IN_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12021
              IN_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12022
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12023
            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: 34
diff changeset
 12024
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 12025
            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: 34
diff changeset
 12026
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12027
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12028
                symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12029
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12030
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12031
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12032
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12033
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12034
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12035
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12036
    }/*function_date_and_time_to_date*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12037
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12038
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12039
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12040
 *ABS
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12041
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12042
    case function_abs :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12043
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12044
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12045
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12046
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12047
            identifier_c param_name("IN");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12048
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12049
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12050
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12051
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12052
            if (IN_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12053
              IN_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12054
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12055
            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: 34
diff changeset
 12056
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12057
            if(search_expression_type->is_num_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12058
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12059
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12060
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12061
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12062
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12063
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12064
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12065
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12066
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12067
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12068
    }/*function_abs*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12069
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12070
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12071
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12072
 *SQRT
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12073
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12074
    case function_sqrt :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12075
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12076
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12077
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12078
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12079
            identifier_c param_name("IN");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12080
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12081
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12082
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12083
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12084
            if (IN_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12085
              IN_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12086
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12087
            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: 34
diff changeset
 12088
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12089
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12090
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12091
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12092
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12093
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12094
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12095
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12096
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12097
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12098
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12099
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12100
    }/*function_sqrt*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12101
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12102
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12103
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12104
 *LN
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12105
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12106
    case function_ln :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12107
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12108
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12109
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12110
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12111
            identifier_c param_name("IN");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12112
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12113
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12114
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12115
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12116
            if (IN_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12117
              IN_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12118
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12119
            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: 34
diff changeset
 12120
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12121
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12122
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12123
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12124
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12125
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12126
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12127
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12128
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12129
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12130
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12131
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12132
    }/*function_ln*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12133
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12134
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12135
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12136
 *LOG
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12137
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12138
    case function_log :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12139
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12140
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12141
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12142
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12143
            identifier_c param_name("IN");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12144
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12145
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12146
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12147
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12148
            if (IN_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12149
              IN_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12150
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12151
            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: 34
diff changeset
 12152
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12153
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12154
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12155
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12156
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12157
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12158
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12159
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12160
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12161
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12162
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12163
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12164
    }/*function_log*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12165
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12166
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12167
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12168
 *EXP
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12169
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12170
    case function_exp :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12171
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12172
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12173
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12174
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12175
            identifier_c param_name("IN");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12176
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12177
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12178
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12179
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12180
            if (IN_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12181
              IN_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12182
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12183
            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: 34
diff changeset
 12184
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12185
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12186
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12187
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12188
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12189
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12190
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12191
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12192
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12193
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12194
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12195
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12196
    }/*function_exp*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12197
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12198
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12199
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12200
 *SIN
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12201
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12202
    case function_sin :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12203
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12204
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12205
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12206
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12207
            identifier_c param_name("IN");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12208
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12209
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12210
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12211
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12212
            if (IN_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12213
              IN_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12214
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12215
            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: 34
diff changeset
 12216
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12217
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12218
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12219
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12220
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12221
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12222
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12223
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12224
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12225
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12226
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12227
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12228
    }/*function_sin*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12229
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12230
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12231
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12232
 *COS
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12233
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12234
    case function_cos :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12235
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12236
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12237
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12238
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12239
            identifier_c param_name("IN");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12240
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12241
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12242
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12243
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12244
            if (IN_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12245
              IN_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12246
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12247
            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: 34
diff changeset
 12248
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12249
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12250
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12251
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12252
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12253
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12254
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12255
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12256
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12257
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12258
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12259
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12260
    }/*function_cos*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12261
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12262
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12263
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12264
 *TAN
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12265
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12266
    case function_tan :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12267
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12268
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12269
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12270
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12271
            identifier_c param_name("IN");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12272
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12273
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12274
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12275
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12276
            if (IN_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12277
              IN_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12278
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12279
            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: 34
diff changeset
 12280
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12281
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12282
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12283
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12284
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12285
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12286
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12287
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12288
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12289
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12290
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12291
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12292
    }/*function_tan*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12293
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12294
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12295
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12296
 *ASIN
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12297
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12298
    case function_asin :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12299
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12300
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12301
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12302
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12303
            identifier_c param_name("IN");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12304
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12305
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12306
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12307
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12308
            if (IN_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12309
              IN_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12310
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12311
            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: 34
diff changeset
 12312
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12313
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12314
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12315
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12316
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12317
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12318
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12319
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12320
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12321
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12322
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12323
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12324
    }/*function_asin*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12325
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12326
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12327
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12328
 *ACOS
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12329
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12330
    case function_acos :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12331
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12332
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12333
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12334
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12335
            identifier_c param_name("IN");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12336
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12337
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12338
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12339
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12340
            if (IN_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12341
              IN_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12342
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12343
            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: 34
diff changeset
 12344
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12345
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12346
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12347
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12348
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12349
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12350
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12351
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12352
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12353
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12354
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12355
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12356
    }/*function_acos*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12357
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12358
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12359
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12360
 *ATAN
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12361
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12362
    case function_atan :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12363
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12364
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12365
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12366
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12367
            identifier_c param_name("IN");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12368
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12369
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12370
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12371
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12372
            if (IN_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12373
              IN_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12374
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12375
            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: 34
diff changeset
 12376
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12377
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12378
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12379
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12380
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12381
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12382
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12383
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12384
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12385
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12386
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12387
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12388
    }/*function_atan*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12389
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12390
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12391
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12392
 *ADD
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12393
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12394
    case function_add :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12395
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12396
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12397
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12398
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12399
            identifier_c param_name("IN1");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12400
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12401
            symbol_c *IN1_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12402
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12403
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12404
            if (IN1_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12405
              IN1_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12406
            symbol_c *IN1_type_symbol = search_expression_type->get_type(IN1_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12407
            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: 34
diff changeset
 12408
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12409
            if(search_expression_type->is_num_type(IN1_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12410
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12411
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12412
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12413
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12414
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12415
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12416
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12417
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12418
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12419
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12420
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12421
                    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: 34
diff changeset
 12422
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12423
                    if(search_expression_type->is_num_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12424
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12425
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12426
                        symbol_c * return_type_symbol = last_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12427
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12428
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12429
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12430
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12431
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12432
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12433
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12434
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12435
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 12436
            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: 34
diff changeset
 12437
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12438
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12439
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12440
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12441
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12442
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12443
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12444
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12445
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12446
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12447
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12448
                    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: 34
diff changeset
 12449
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 12450
                    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: 34
diff changeset
 12451
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12452
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12453
                        symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12454
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12455
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12456
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12457
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12458
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12459
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12460
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12461
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12462
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 12463
            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: 34
diff changeset
 12464
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12465
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12466
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12467
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12468
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12469
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12470
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12471
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12472
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12473
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12474
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12475
                    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: 34
diff changeset
 12476
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 12477
                    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: 34
diff changeset
 12478
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12479
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12480
                        symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12481
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12482
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12483
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12484
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12485
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12486
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12487
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12488
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12489
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 12490
            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: 34
diff changeset
 12491
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12492
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12493
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12494
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12495
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12496
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12497
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12498
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12499
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12500
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12501
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12502
                    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: 34
diff changeset
 12503
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 12504
                    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: 34
diff changeset
 12505
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12506
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12507
                        symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12508
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12509
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12510
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12511
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12512
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12513
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12514
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12515
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12516
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12517
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12518
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12519
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12520
    }/*function_add*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12521
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12522
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12523
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12524
 *MUL
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12525
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12526
    case function_mul :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12527
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12528
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12529
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12530
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12531
            identifier_c param_name("IN1");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12532
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12533
            symbol_c *IN1_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12534
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12535
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12536
            if (IN1_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12537
              IN1_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12538
            symbol_c *IN1_type_symbol = search_expression_type->get_type(IN1_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12539
            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: 34
diff changeset
 12540
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12541
            if(search_expression_type->is_num_type(IN1_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12542
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12543
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12544
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12545
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12546
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12547
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12548
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12549
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12550
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12551
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12552
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12553
                    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: 34
diff changeset
 12554
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12555
                    if(search_expression_type->is_num_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12556
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12557
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12558
                        symbol_c * return_type_symbol = last_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12559
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12560
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12561
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12562
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12563
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12564
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12565
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12566
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12567
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 12568
            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: 34
diff changeset
 12569
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12570
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12571
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12572
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12573
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12574
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12575
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12576
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12577
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12578
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12579
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12580
                    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: 34
diff changeset
 12581
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12582
                    if(search_expression_type->is_num_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12583
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12584
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12585
                        symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12586
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12587
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12588
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12589
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12590
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12591
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12592
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12593
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12594
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12595
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12596
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12597
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12598
    }/*function_mul*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12599
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12600
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12601
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12602
 *SUB
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12603
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12604
    case function_sub :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12605
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12606
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12607
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12608
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12609
            identifier_c param_name("IN1");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12610
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12611
            symbol_c *IN1_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12612
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12613
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12614
            if (IN1_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12615
              IN1_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12616
            symbol_c *IN1_type_symbol = search_expression_type->get_type(IN1_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12617
            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: 34
diff changeset
 12618
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12619
            if(search_expression_type->is_num_type(IN1_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12620
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12621
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12622
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12623
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12624
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12625
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12626
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12627
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12628
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12629
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12630
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12631
                    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: 34
diff changeset
 12632
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12633
                    if(search_expression_type->is_num_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12634
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12635
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12636
                        symbol_c * return_type_symbol = last_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12637
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12638
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12639
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12640
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12641
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12642
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12643
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12644
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12645
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 12646
            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: 34
diff changeset
 12647
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12648
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12649
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12650
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12651
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12652
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12653
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12654
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12655
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12656
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12657
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12658
                    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: 34
diff changeset
 12659
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 12660
                    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: 34
diff changeset
 12661
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12662
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12663
                        symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12664
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12665
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12666
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12667
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12668
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12669
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12670
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12671
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12672
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 12673
            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: 34
diff changeset
 12674
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12675
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12676
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12677
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12678
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12679
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12680
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12681
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12682
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12683
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12684
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12685
                    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: 34
diff changeset
 12686
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 12687
                    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: 34
diff changeset
 12688
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12689
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12690
                        symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12691
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12692
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12693
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12694
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 12695
                    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: 34
diff changeset
 12696
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12697
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12698
                        symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12699
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12700
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12701
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12702
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12703
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12704
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12705
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12706
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12707
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 12708
            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: 34
diff changeset
 12709
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12710
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12711
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12712
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12713
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12714
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12715
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12716
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12717
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12718
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12719
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12720
                    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: 34
diff changeset
 12721
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 12722
                    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: 34
diff changeset
 12723
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12724
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12725
                        symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12726
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12727
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12728
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12729
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 12730
                    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: 34
diff changeset
 12731
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12732
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12733
                        symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12734
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12735
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12736
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12737
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12738
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12739
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12740
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12741
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12742
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 12743
            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: 34
diff changeset
 12744
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12745
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12746
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12747
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12748
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12749
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12750
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12751
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12752
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12753
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12754
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12755
                    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: 34
diff changeset
 12756
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 12757
                    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: 34
diff changeset
 12758
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12759
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12760
                        symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12761
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12762
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12763
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12764
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12765
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12766
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12767
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12768
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12769
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12770
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12771
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12772
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12773
    }/*function_sub*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12774
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12775
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12776
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12777
 *DIV
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12778
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12779
    case function_div :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12780
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12781
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12782
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12783
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12784
            identifier_c param_name("IN1");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12785
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12786
            symbol_c *IN1_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12787
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12788
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12789
            if (IN1_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12790
              IN1_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12791
            symbol_c *IN1_type_symbol = search_expression_type->get_type(IN1_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12792
            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: 34
diff changeset
 12793
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12794
            if(search_expression_type->is_num_type(IN1_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12795
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12796
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12797
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12798
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12799
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12800
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12801
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12802
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12803
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12804
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12805
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12806
                    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: 34
diff changeset
 12807
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12808
                    if(search_expression_type->is_num_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12809
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12810
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12811
                        symbol_c * return_type_symbol = last_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12812
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12813
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12814
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12815
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12816
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12817
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12818
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12819
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12820
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 12821
            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: 34
diff changeset
 12822
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12823
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12824
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12825
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12826
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12827
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12828
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12829
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12830
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12831
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12832
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12833
                    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: 34
diff changeset
 12834
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12835
                    if(search_expression_type->is_num_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12836
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12837
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12838
                        symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12839
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12840
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12841
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12842
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12843
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12844
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12845
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12846
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12847
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12848
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12849
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12850
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12851
    }/*function_div*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12852
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12853
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12854
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12855
 *MOD
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12856
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12857
    case function_mod :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12858
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12859
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12860
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12861
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12862
            identifier_c param_name("IN1");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12863
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12864
            symbol_c *IN1_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12865
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12866
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12867
            if (IN1_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12868
              IN1_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12869
            symbol_c *IN1_type_symbol = search_expression_type->get_type(IN1_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12870
            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: 34
diff changeset
 12871
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12872
            if(search_expression_type->is_num_type(IN1_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12873
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12874
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12875
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12876
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12877
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12878
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12879
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12880
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12881
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12882
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12883
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12884
                    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: 34
diff changeset
 12885
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12886
                    if(search_expression_type->is_num_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12887
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12888
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12889
                        symbol_c * return_type_symbol = last_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12890
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12891
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12892
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12893
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12894
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12895
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12896
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12897
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12898
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12899
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12900
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12901
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12902
    }/*function_mod*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12903
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12904
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12905
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12906
 *EXPT
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12907
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12908
    case function_expt :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12909
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12910
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12911
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12912
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12913
            identifier_c param_name("IN1");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12914
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12915
            symbol_c *IN1_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12916
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12917
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12918
            if (IN1_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12919
              IN1_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12920
            symbol_c *IN1_type_symbol = search_expression_type->get_type(IN1_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12921
            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: 34
diff changeset
 12922
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12923
            if(search_expression_type->is_num_type(IN1_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12924
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12925
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12926
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12927
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12928
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12929
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12930
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12931
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12932
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12933
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12934
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12935
                    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: 34
diff changeset
 12936
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12937
                    if(search_expression_type->is_num_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12938
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12939
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12940
                        symbol_c * return_type_symbol = last_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12941
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12942
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12943
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12944
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12945
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12946
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12947
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12948
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12949
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12950
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12951
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12952
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12953
    }/*function_expt*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12954
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12955
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12956
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12957
 *MOVE
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12958
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12959
    case function_move :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12960
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12961
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12962
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12963
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12964
            identifier_c param_name("IN");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12965
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12966
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12967
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12968
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12969
            if (IN_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12970
              IN_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12971
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12972
            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: 34
diff changeset
 12973
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12974
            if(search_expression_type->is_num_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12975
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12976
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12977
                symbol_c * return_type_symbol = last_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12978
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12979
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12980
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12981
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12982
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12983
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12984
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12985
    }/*function_move*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12986
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12987
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12988
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12989
 *SHL
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12990
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12991
    case function_shl :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12992
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12993
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12994
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12995
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12996
            identifier_c param_name("IN");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12997
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12998
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 12999
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13000
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13001
            if (IN_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13002
              IN_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13003
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13004
            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: 34
diff changeset
 13005
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13006
            if(search_expression_type->is_binary_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13007
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13008
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13009
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13010
                    identifier_c param_name("N");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13011
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13012
                    symbol_c *N_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13013
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13014
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13015
                    if (N_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13016
                      N_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13017
                    symbol_c *N_type_symbol = search_expression_type->get_type(N_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13018
                    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: 34
diff changeset
 13019
                    
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
 13020
                    if(search_expression_type->is_integer_type(N_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13021
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13022
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13023
                        symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13024
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13025
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13026
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13027
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13028
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13029
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13030
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13031
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13032
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13033
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13034
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13035
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13036
    }/*function_shl*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13037
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13038
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13039
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13040
 *SHR
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13041
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13042
    case function_shr :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13043
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13044
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13045
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13046
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13047
            identifier_c param_name("IN");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13048
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13049
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13050
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13051
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13052
            if (IN_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13053
              IN_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13054
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13055
            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: 34
diff changeset
 13056
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13057
            if(search_expression_type->is_binary_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13058
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13059
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13060
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13061
                    identifier_c param_name("N");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13062
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13063
                    symbol_c *N_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13064
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13065
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13066
                    if (N_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13067
                      N_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13068
                    symbol_c *N_type_symbol = search_expression_type->get_type(N_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13069
                    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: 34
diff changeset
 13070
                    
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
 13071
                    if(search_expression_type->is_integer_type(N_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13072
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13073
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13074
                        symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13075
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13076
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13077
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13078
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13079
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13080
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13081
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13082
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13083
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13084
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13085
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13086
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13087
    }/*function_shr*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13088
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13089
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13090
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13091
 *ROR
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13092
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13093
    case function_ror :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13094
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13095
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13096
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13097
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13098
            identifier_c param_name("IN");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13099
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13100
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13101
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13102
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13103
            if (IN_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13104
              IN_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13105
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13106
            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: 34
diff changeset
 13107
            
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 13108
            if(search_expression_type->is_nbinary_type(IN_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13109
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13110
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13111
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13112
                    identifier_c param_name("N");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13113
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13114
                    symbol_c *N_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13115
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13116
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13117
                    if (N_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13118
                      N_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13119
                    symbol_c *N_type_symbol = search_expression_type->get_type(N_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13120
                    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: 34
diff changeset
 13121
                    
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
 13122
                    if(search_expression_type->is_integer_type(N_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13123
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13124
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13125
                        symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13126
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13127
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13128
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13129
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13130
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13131
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13132
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13133
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13134
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13135
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13136
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13137
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13138
    }/*function_ror*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13139
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13140
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13141
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13142
 *ROL
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13143
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13144
    case function_rol :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13145
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13146
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13147
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13148
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13149
            identifier_c param_name("IN");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13150
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13151
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13152
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13153
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13154
            if (IN_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13155
              IN_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13156
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13157
            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: 34
diff changeset
 13158
            
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 13159
            if(search_expression_type->is_nbinary_type(IN_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13160
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13161
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13162
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13163
                    identifier_c param_name("N");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13164
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13165
                    symbol_c *N_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13166
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13167
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13168
                    if (N_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13169
                      N_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13170
                    symbol_c *N_type_symbol = search_expression_type->get_type(N_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13171
                    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: 34
diff changeset
 13172
                    
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
 13173
                    if(search_expression_type->is_integer_type(N_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13174
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13175
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13176
                        symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13177
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13178
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13179
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13180
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13181
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13182
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13183
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13184
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13185
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13186
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13187
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13188
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13189
    }/*function_rol*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13190
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13191
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13192
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13193
 *AND
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13194
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13195
    case function_and :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13196
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13197
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13198
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13199
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13200
            identifier_c param_name("IN1");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13201
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13202
            symbol_c *IN1_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13203
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13204
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13205
            if (IN1_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13206
              IN1_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13207
            symbol_c *IN1_type_symbol = search_expression_type->get_type(IN1_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13208
            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: 34
diff changeset
 13209
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13210
            if(search_expression_type->is_binary_type(IN1_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13211
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13212
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13213
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13214
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13215
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13216
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13217
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13218
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13219
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13220
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13221
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13222
                    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: 34
diff changeset
 13223
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13224
                    if(search_expression_type->is_binary_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13225
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13226
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13227
                        symbol_c * return_type_symbol = last_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13228
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13229
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13230
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13231
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13232
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13233
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13234
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13235
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13236
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13237
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13238
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13239
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13240
    }/*function_and*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13241
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13242
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13243
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13244
 *OR
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13245
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13246
    case function_or :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13247
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13248
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13249
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13250
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13251
            identifier_c param_name("IN1");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13252
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13253
            symbol_c *IN1_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13254
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13255
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13256
            if (IN1_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13257
              IN1_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13258
            symbol_c *IN1_type_symbol = search_expression_type->get_type(IN1_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13259
            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: 34
diff changeset
 13260
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13261
            if(search_expression_type->is_binary_type(IN1_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13262
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13263
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13264
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13265
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13266
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13267
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13268
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13269
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13270
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13271
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13272
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13273
                    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: 34
diff changeset
 13274
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13275
                    if(search_expression_type->is_binary_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13276
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13277
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13278
                        symbol_c * return_type_symbol = last_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13279
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13280
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13281
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13282
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13283
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13284
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13285
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13286
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13287
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13288
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13289
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13290
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13291
    }/*function_or*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13292
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13293
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13294
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13295
 *XOR
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13296
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13297
    case function_xor :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13298
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13299
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13300
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13301
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13302
            identifier_c param_name("IN1");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13303
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13304
            symbol_c *IN1_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13305
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13306
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13307
            if (IN1_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13308
              IN1_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13309
            symbol_c *IN1_type_symbol = search_expression_type->get_type(IN1_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13310
            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: 34
diff changeset
 13311
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13312
            if(search_expression_type->is_binary_type(IN1_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13313
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13314
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13315
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13316
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13317
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13318
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13319
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13320
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13321
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13322
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13323
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13324
                    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: 34
diff changeset
 13325
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13326
                    if(search_expression_type->is_binary_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13327
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13328
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13329
                        symbol_c * return_type_symbol = last_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13330
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13331
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13332
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13333
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13334
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13335
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13336
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13337
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13338
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13339
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13340
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13341
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13342
    }/*function_xor*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13343
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13344
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13345
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13346
 *NOT
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13347
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13348
    case function_not :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13349
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13350
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13351
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13352
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13353
            identifier_c param_name("IN");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13354
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13355
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13356
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13357
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13358
            if (IN_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13359
              IN_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13360
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13361
            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: 34
diff changeset
 13362
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13363
            if(search_expression_type->is_binary_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13364
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13365
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13366
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13367
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13368
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13369
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13370
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13371
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13372
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13373
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13374
    }/*function_not*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13375
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13376
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13377
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13378
 *SEL
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13379
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13380
    case function_sel :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13381
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13382
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13383
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13384
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13385
            identifier_c param_name("G");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13386
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13387
            symbol_c *G_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13388
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13389
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13390
            if (G_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13391
              G_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13392
            symbol_c *G_type_symbol = search_expression_type->get_type(G_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13393
            last_type_symbol = last_type_symbol && search_expression_type->is_same_type(G_type_symbol, last_type_symbol) ? search_expression_type->common_type(G_type_symbol, last_type_symbol) : G_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13394
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 13395
            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: 34
diff changeset
 13396
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13397
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13398
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13399
                    identifier_c param_name("IN0");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13400
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13401
                    symbol_c *IN0_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13402
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13403
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13404
                    if (IN0_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13405
                      IN0_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13406
                    symbol_c *IN0_type_symbol = search_expression_type->get_type(IN0_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13407
                    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: 34
diff changeset
 13408
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13409
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13410
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13411
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13412
                        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13413
                            identifier_c param_name("IN1");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13414
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13415
                            symbol_c *IN1_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13416
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13417
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13418
                            if (IN1_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13419
                              IN1_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13420
                            symbol_c *IN1_type_symbol = search_expression_type->get_type(IN1_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13421
                            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: 34
diff changeset
 13422
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13423
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13424
                            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13425
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13426
                                symbol_c * return_type_symbol = last_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13427
                                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13428
                                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13429
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13430
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13431
                            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13432
                        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13433
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13434
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13435
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13436
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13437
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13438
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13439
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13440
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13441
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13442
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13443
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13444
    }/*function_sel*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13445
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13446
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13447
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13448
 *MAX
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13449
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13450
    case function_max :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13451
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13452
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13453
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13454
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13455
            identifier_c param_name("IN1");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13456
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13457
            symbol_c *IN1_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13458
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13459
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13460
            if (IN1_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13461
              IN1_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13462
            symbol_c *IN1_type_symbol = search_expression_type->get_type(IN1_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13463
            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: 34
diff changeset
 13464
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13465
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13466
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13467
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13468
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13469
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13470
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13471
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13472
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13473
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13474
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13475
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13476
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13477
                    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: 34
diff changeset
 13478
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13479
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13480
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13481
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13482
                        symbol_c * return_type_symbol = last_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13483
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13484
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13485
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13486
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13487
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13488
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13489
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13490
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13491
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13492
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13493
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13494
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13495
    }/*function_max*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13496
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13497
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13498
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13499
 *MIN
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13500
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13501
    case function_min :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13502
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13503
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13504
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13505
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13506
            identifier_c param_name("IN1");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13507
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13508
            symbol_c *IN1_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13509
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13510
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13511
            if (IN1_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13512
              IN1_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13513
            symbol_c *IN1_type_symbol = search_expression_type->get_type(IN1_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13514
            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: 34
diff changeset
 13515
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13516
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13517
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13518
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13519
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13520
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13521
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13522
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13523
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13524
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13525
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13526
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13527
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13528
                    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: 34
diff changeset
 13529
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13530
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13531
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13532
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13533
                        symbol_c * return_type_symbol = last_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13534
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13535
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13536
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13537
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13538
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13539
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13540
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13541
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13542
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13543
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13544
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13545
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13546
    }/*function_min*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13547
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13548
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13549
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13550
 *LIMIT
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13551
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13552
    case function_limit :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13553
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13554
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13555
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13556
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13557
            identifier_c param_name("MN");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13558
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13559
            symbol_c *MN_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13560
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13561
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13562
            if (MN_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13563
              MN_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13564
            symbol_c *MN_type_symbol = search_expression_type->get_type(MN_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13565
            last_type_symbol = last_type_symbol && search_expression_type->is_same_type(MN_type_symbol, last_type_symbol) ? search_expression_type->common_type(MN_type_symbol, last_type_symbol) : MN_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13566
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13567
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13568
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13569
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13570
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13571
                    identifier_c param_name("IN");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13572
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13573
                    symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13574
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13575
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13576
                    if (IN_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13577
                      IN_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13578
                    symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13579
                    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: 34
diff changeset
 13580
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13581
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13582
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13583
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13584
                        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13585
                            identifier_c param_name("MX");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13586
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13587
                            symbol_c *MX_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13588
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13589
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13590
                            if (MX_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13591
                              MX_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13592
                            symbol_c *MX_type_symbol = search_expression_type->get_type(MX_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13593
                            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: 34
diff changeset
 13594
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13595
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13596
                            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13597
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13598
                                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13599
                                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13600
                                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13601
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13602
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13603
                            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13604
                        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13605
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13606
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13607
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13608
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13609
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13610
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13611
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13612
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13613
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13614
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13615
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13616
    }/*function_limit*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13617
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13618
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13619
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13620
 *MUX
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13621
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13622
    case function_mux :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13623
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13624
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13625
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13626
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13627
            identifier_c param_name("K");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13628
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13629
            symbol_c *K_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13630
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13631
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13632
            if (K_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13633
              K_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13634
            symbol_c *K_type_symbol = search_expression_type->get_type(K_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13635
            last_type_symbol = last_type_symbol && search_expression_type->is_same_type(K_type_symbol, last_type_symbol) ? search_expression_type->common_type(K_type_symbol, last_type_symbol) : K_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13636
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13637
            if(search_expression_type->is_integer_type(K_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13638
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13639
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13640
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13641
                    identifier_c param_name("IN0");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13642
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13643
                    symbol_c *IN0_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13644
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13645
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13646
                    if (IN0_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13647
                      IN0_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13648
                    symbol_c *IN0_type_symbol = search_expression_type->get_type(IN0_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13649
                    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: 34
diff changeset
 13650
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13651
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13652
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13653
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13654
                        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13655
                            identifier_c param_name("IN1");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13656
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13657
                            symbol_c *IN1_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13658
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13659
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13660
                            if (IN1_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13661
                              IN1_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13662
                            symbol_c *IN1_type_symbol = search_expression_type->get_type(IN1_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13663
                            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: 34
diff changeset
 13664
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13665
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13666
                            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13667
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13668
                                symbol_c * return_type_symbol = last_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13669
                                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13670
                                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13671
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13672
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13673
                            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13674
                        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13675
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13676
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13677
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13678
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13679
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13680
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13681
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13682
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13683
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13684
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13685
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13686
    }/*function_mux*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13687
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13688
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13689
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13690
 *GT
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13691
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13692
    case function_gt :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13693
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13694
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13695
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13696
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13697
            identifier_c param_name("IN1");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13698
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13699
            symbol_c *IN1_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13700
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13701
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13702
            if (IN1_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13703
              IN1_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13704
            symbol_c *IN1_type_symbol = search_expression_type->get_type(IN1_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13705
            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: 34
diff changeset
 13706
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13707
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13708
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13709
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13710
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13711
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13712
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13713
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13714
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13715
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13716
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13717
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13718
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13719
                    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: 34
diff changeset
 13720
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13721
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13722
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13723
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13724
                        symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13725
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13726
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13727
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13728
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13729
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13730
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13731
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13732
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13733
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13734
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13735
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13736
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13737
    }/*function_gt*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13738
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13739
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13740
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13741
 *GE
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13742
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13743
    case function_ge :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13744
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13745
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13746
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13747
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13748
            identifier_c param_name("IN1");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13749
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13750
            symbol_c *IN1_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13751
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13752
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13753
            if (IN1_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13754
              IN1_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13755
            symbol_c *IN1_type_symbol = search_expression_type->get_type(IN1_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13756
            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: 34
diff changeset
 13757
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13758
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13759
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13760
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13761
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13762
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13763
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13764
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13765
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13766
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13767
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13768
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13769
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13770
                    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: 34
diff changeset
 13771
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13772
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13773
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13774
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13775
                        symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13776
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13777
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13778
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13779
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13780
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13781
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13782
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13783
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13784
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13785
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13786
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13787
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13788
    }/*function_ge*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13789
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13790
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13791
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13792
 *EQ
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13793
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13794
    case function_eq :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13795
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13796
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13797
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13798
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13799
            identifier_c param_name("IN1");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13800
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13801
            symbol_c *IN1_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13802
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13803
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13804
            if (IN1_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13805
              IN1_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13806
            symbol_c *IN1_type_symbol = search_expression_type->get_type(IN1_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13807
            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: 34
diff changeset
 13808
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13809
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13810
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13811
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13812
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13813
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13814
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13815
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13816
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13817
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13818
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13819
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13820
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13821
                    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: 34
diff changeset
 13822
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13823
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13824
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13825
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13826
                        symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13827
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13828
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13829
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13830
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13831
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13832
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13833
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13834
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13835
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13836
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13837
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13838
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13839
    }/*function_eq*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13840
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13841
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13842
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13843
 *LT
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13844
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13845
    case function_lt :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13846
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13847
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13848
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13849
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13850
            identifier_c param_name("IN1");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13851
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13852
            symbol_c *IN1_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13853
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13854
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13855
            if (IN1_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13856
              IN1_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13857
            symbol_c *IN1_type_symbol = search_expression_type->get_type(IN1_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13858
            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: 34
diff changeset
 13859
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13860
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13861
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13862
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13863
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13864
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13865
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13866
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13867
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13868
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13869
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13870
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13871
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13872
                    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: 34
diff changeset
 13873
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13874
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13875
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13876
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13877
                        symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13878
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13879
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13880
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13881
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13882
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13883
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13884
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13885
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13886
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13887
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13888
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13889
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13890
    }/*function_lt*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13891
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13892
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13893
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13894
 *LE
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13895
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13896
    case function_le :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13897
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13898
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13899
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13900
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13901
            identifier_c param_name("IN1");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13902
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13903
            symbol_c *IN1_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13904
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13905
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13906
            if (IN1_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13907
              IN1_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13908
            symbol_c *IN1_type_symbol = search_expression_type->get_type(IN1_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13909
            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: 34
diff changeset
 13910
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13911
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13912
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13913
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13914
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13915
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13916
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13917
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13918
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13919
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13920
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13921
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13922
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13923
                    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: 34
diff changeset
 13924
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13925
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13926
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13927
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13928
                        symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13929
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13930
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13931
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13932
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13933
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13934
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13935
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13936
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13937
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13938
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13939
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13940
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13941
    }/*function_le*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13942
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13943
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13944
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13945
 *NE
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13946
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13947
    case function_ne :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13948
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13949
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13950
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13951
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13952
            identifier_c param_name("IN1");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13953
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13954
            symbol_c *IN1_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13955
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13956
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13957
            if (IN1_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13958
              IN1_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13959
            symbol_c *IN1_type_symbol = search_expression_type->get_type(IN1_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13960
            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: 34
diff changeset
 13961
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13962
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13963
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13964
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13965
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13966
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13967
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13968
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13969
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13970
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13971
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13972
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13973
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13974
                    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: 34
diff changeset
 13975
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13976
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13977
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13978
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13979
                        symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13980
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13981
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13982
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13983
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13984
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13985
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13986
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13987
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13988
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13989
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13990
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13991
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13992
    }/*function_ne*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13993
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13994
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13995
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13996
 *LEN
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13997
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13998
    case function_len :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 13999
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14000
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14001
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14002
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14003
            identifier_c param_name("IN");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14004
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14005
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14006
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14007
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14008
            if (IN_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14009
              IN_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14010
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14011
            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: 34
diff changeset
 14012
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14013
            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: 34
diff changeset
 14014
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14015
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14016
                symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14017
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14018
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14019
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14020
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14021
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14022
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14023
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14024
    }/*function_len*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14025
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14026
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14027
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14028
 *LEFT
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14029
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14030
    case function_left :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14031
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14032
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14033
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14034
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14035
            identifier_c param_name("IN");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14036
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14037
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14038
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14039
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14040
            if (IN_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14041
              IN_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14042
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14043
            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: 34
diff changeset
 14044
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14045
            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: 34
diff changeset
 14046
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14047
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14048
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14049
                    identifier_c param_name("L");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14050
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14051
                    symbol_c *L_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14052
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14053
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14054
                    if (L_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14055
                      L_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14056
                    symbol_c *L_type_symbol = search_expression_type->get_type(L_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14057
                    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: 34
diff changeset
 14058
                    
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
 14059
                    if(search_expression_type->is_integer_type(L_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14060
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14061
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14062
                        symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14063
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14064
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14065
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14066
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14067
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14068
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14069
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14070
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14071
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14072
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14073
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14074
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14075
    }/*function_left*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14076
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14077
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14078
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14079
 *RIGHT
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14080
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14081
    case function_right :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14082
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14083
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14084
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14085
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14086
            identifier_c param_name("IN");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14087
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14088
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14089
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14090
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14091
            if (IN_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14092
              IN_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14093
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14094
            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: 34
diff changeset
 14095
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14096
            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: 34
diff changeset
 14097
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14098
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14099
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14100
                    identifier_c param_name("L");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14101
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14102
                    symbol_c *L_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14103
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14104
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14105
                    if (L_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14106
                      L_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14107
                    symbol_c *L_type_symbol = search_expression_type->get_type(L_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14108
                    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: 34
diff changeset
 14109
                    
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
 14110
                    if(search_expression_type->is_integer_type(L_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14111
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14112
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14113
                        symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14114
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14115
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14116
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14117
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14118
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14119
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14120
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14121
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14122
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14123
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14124
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14125
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14126
    }/*function_right*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14127
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14128
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14129
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14130
 *MID
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14131
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14132
    case function_mid :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14133
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14134
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14135
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14136
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14137
            identifier_c param_name("IN");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14138
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14139
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14140
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14141
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14142
            if (IN_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14143
              IN_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14144
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14145
            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: 34
diff changeset
 14146
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14147
            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: 34
diff changeset
 14148
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14149
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14150
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14151
                    identifier_c param_name("L");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14152
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14153
                    symbol_c *L_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14154
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14155
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14156
                    if (L_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14157
                      L_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14158
                    symbol_c *L_type_symbol = search_expression_type->get_type(L_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14159
                    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: 34
diff changeset
 14160
                    
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
 14161
                    if(search_expression_type->is_integer_type(L_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14162
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14163
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14164
                        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14165
                            identifier_c param_name("P");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14166
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14167
                            symbol_c *P_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14168
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14169
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14170
                            if (P_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14171
                              P_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14172
                            symbol_c *P_type_symbol = search_expression_type->get_type(P_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14173
                            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: 34
diff changeset
 14174
                            
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
 14175
                            if(search_expression_type->is_integer_type(P_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14176
                            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14177
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14178
                                symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14179
                                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14180
                                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14181
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14182
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14183
                            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14184
                        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14185
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14186
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14187
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14188
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14189
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14190
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14191
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14192
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14193
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14194
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14195
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14196
    }/*function_mid*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14197
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14198
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14199
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14200
 *CONCAT
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14201
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14202
    case function_concat :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14203
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14204
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14205
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14206
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14207
            identifier_c param_name("IN1");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14208
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14209
            symbol_c *IN1_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14210
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14211
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14212
            if (IN1_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14213
              IN1_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14214
            symbol_c *IN1_type_symbol = search_expression_type->get_type(IN1_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14215
            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: 34
diff changeset
 14216
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14217
            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: 34
diff changeset
 14218
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14219
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14220
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14221
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14222
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14223
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14224
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14225
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14226
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14227
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14228
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14229
                    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: 34
diff changeset
 14230
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14231
                    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: 34
diff changeset
 14232
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14233
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14234
                        symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14235
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14236
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14237
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14238
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14239
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14240
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14241
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14242
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14243
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14244
            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: 34
diff changeset
 14245
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14246
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14247
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14248
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14249
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14250
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14251
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14252
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14253
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14254
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14255
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14256
                    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: 34
diff changeset
 14257
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14258
                    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: 34
diff changeset
 14259
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14260
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14261
                        symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14262
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14263
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14264
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14265
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14266
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14267
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14268
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14269
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14270
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14271
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14272
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14273
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14274
    }/*function_concat*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14275
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14276
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14277
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14278
 *INSERT
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14279
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14280
    case function_insert :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14281
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14282
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14283
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14284
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14285
            identifier_c param_name("IN1");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14286
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14287
            symbol_c *IN1_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14288
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14289
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14290
            if (IN1_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14291
              IN1_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14292
            symbol_c *IN1_type_symbol = search_expression_type->get_type(IN1_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14293
            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: 34
diff changeset
 14294
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14295
            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: 34
diff changeset
 14296
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14297
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14298
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14299
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14300
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14301
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14302
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14303
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14304
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14305
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14306
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14307
                    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: 34
diff changeset
 14308
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14309
                    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: 34
diff changeset
 14310
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14311
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14312
                        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14313
                            identifier_c param_name("P");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14314
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14315
                            symbol_c *P_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14316
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14317
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14318
                            if (P_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14319
                              P_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14320
                            symbol_c *P_type_symbol = search_expression_type->get_type(P_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14321
                            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: 34
diff changeset
 14322
                            
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
 14323
                            if(search_expression_type->is_integer_type(P_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14324
                            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14325
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14326
                                symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14327
                                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14328
                                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14329
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14330
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14331
                            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14332
                        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14333
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14334
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14335
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14336
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14337
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14338
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14339
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14340
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14341
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14342
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14343
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14344
    }/*function_insert*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14345
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14346
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14347
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14348
 *DELETE
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14349
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14350
    case function_delete :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14351
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14352
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14353
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14354
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14355
            identifier_c param_name("IN");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14356
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14357
            symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14358
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14359
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14360
            if (IN_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14361
              IN_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14362
            symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14363
            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: 34
diff changeset
 14364
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14365
            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: 34
diff changeset
 14366
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14367
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14368
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14369
                    identifier_c param_name("L");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14370
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14371
                    symbol_c *L_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14372
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14373
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14374
                    if (L_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14375
                      L_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14376
                    symbol_c *L_type_symbol = search_expression_type->get_type(L_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14377
                    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: 34
diff changeset
 14378
                    
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
 14379
                    if(search_expression_type->is_integer_type(L_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14380
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14381
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14382
                        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14383
                            identifier_c param_name("P");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14384
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14385
                            symbol_c *P_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14386
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14387
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14388
                            if (P_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14389
                              P_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14390
                            symbol_c *P_type_symbol = search_expression_type->get_type(P_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14391
                            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: 34
diff changeset
 14392
                            
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
 14393
                            if(search_expression_type->is_integer_type(P_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14394
                            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14395
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14396
                                symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14397
                                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14398
                                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14399
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14400
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14401
                            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14402
                        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14403
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14404
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14405
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14406
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14407
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14408
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14409
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14410
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14411
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14412
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14413
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14414
    }/*function_delete*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14415
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14416
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14417
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14418
 *REPLACE
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14419
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14420
    case function_replace :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14421
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14422
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14423
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14424
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14425
            identifier_c param_name("IN1");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14426
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14427
            symbol_c *IN1_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14428
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14429
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14430
            if (IN1_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14431
              IN1_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14432
            symbol_c *IN1_type_symbol = search_expression_type->get_type(IN1_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14433
            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: 34
diff changeset
 14434
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14435
            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: 34
diff changeset
 14436
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14437
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14438
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14439
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14440
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14441
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14442
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14443
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14444
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14445
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14446
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14447
                    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: 34
diff changeset
 14448
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14449
                    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: 34
diff changeset
 14450
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14451
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14452
                        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14453
                            identifier_c param_name("L");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14454
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14455
                            symbol_c *L_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14456
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14457
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14458
                            if (L_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14459
                              L_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14460
                            symbol_c *L_type_symbol = search_expression_type->get_type(L_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14461
                            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: 34
diff changeset
 14462
                            
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
 14463
                            if(search_expression_type->is_integer_type(L_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14464
                            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14465
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14466
                                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14467
                                    identifier_c param_name("P");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14468
                                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14469
                                    symbol_c *P_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14470
                                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14471
                                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14472
                                    if (P_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14473
                                      P_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14474
                                    symbol_c *P_type_symbol = search_expression_type->get_type(P_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14475
                                    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: 34
diff changeset
 14476
                                    
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
 14477
                                    if(search_expression_type->is_integer_type(P_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14478
                                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14479
                                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14480
                                        symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14481
                                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14482
                                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14483
                                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14484
                                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14485
                                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14486
                                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14487
                                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14488
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14489
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14490
                            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14491
                        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14492
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14493
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14494
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14495
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14496
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14497
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14498
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14499
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14500
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14501
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14502
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14503
    }/*function_replace*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14504
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14505
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14506
/****
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14507
 *FIND
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14508
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14509
    case function_find :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14510
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14511
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14512
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14513
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14514
            identifier_c param_name("IN1");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14515
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14516
            symbol_c *IN1_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14517
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14518
            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14519
            if (IN1_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14520
              IN1_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14521
            symbol_c *IN1_type_symbol = search_expression_type->get_type(IN1_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14522
            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: 34
diff changeset
 14523
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14524
            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: 34
diff changeset
 14525
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14526
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14527
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14528
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14529
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14530
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14531
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14532
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14533
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14534
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14535
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14536
                    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: 34
diff changeset
 14537
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14538
                    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: 34
diff changeset
 14539
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14540
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14541
                        symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14542
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14543
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14544
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14545
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14546
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14547
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14548
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14549
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14550
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14551
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14552
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14553
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14554
    }/*function_find*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14555
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14556
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14557
    case function_none :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14558
    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14559
  }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14560
  return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14561
}
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14562
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14563
void *compute_standard_function_il(il_function_call_c *symbol, symbol_c *param_data_type) {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14564
  
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14565
  function_type_t current_function_type = get_function_type((identifier_c *)symbol->function_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14566
  function_call_param_iterator_c function_call_param_iterator(symbol);  
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14567
  search_expression_type_c* search_expression_type = this;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14568
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14569
  switch(current_function_type){
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14570
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 14571
/****
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
 14572
 *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
 14573
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14574
    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
 14575
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14576
        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
 14577
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14578
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14579
            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
 14580
            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
 14581
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14582
            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
 14583
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14584
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14585
                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
 14586
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14587
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14588
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14589
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14590
            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
 14591
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14592
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14593
    }/*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
 14594
    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
 14595
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14596
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14597
 *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
 14598
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14599
    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
 14600
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14601
        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
 14602
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14603
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14604
            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
 14605
            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
 14606
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14607
            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
 14608
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14609
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14610
                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
 14611
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14612
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14613
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14614
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14615
            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
 14616
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14617
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14618
    }/*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
 14619
    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
 14620
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14621
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14622
 *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
 14623
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14624
    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
 14625
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14626
        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
 14627
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14628
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14629
            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
 14630
            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
 14631
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14632
            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
 14633
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14634
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14635
                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
 14636
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14637
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14638
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14639
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14640
            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
 14641
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14642
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14643
    }/*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
 14644
    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
 14645
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14646
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14647
 *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
 14648
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14649
    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
 14650
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14651
        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
 14652
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14653
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14654
            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
 14655
            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
 14656
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14657
            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
 14658
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14659
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14660
                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
 14661
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14662
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14663
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14664
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14665
            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
 14666
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14667
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14668
    }/*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
 14669
    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
 14670
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14671
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14672
 *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
 14673
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14674
    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
 14675
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14676
        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
 14677
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14678
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14679
            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
 14680
            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
 14681
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14682
            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
 14683
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14684
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14685
                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
 14686
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14687
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14688
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14689
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14690
            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
 14691
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14692
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14693
    }/*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
 14694
    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
 14695
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14696
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14697
 *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
 14698
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14699
    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
 14700
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14701
        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
 14702
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14703
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14704
            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
 14705
            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
 14706
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14707
            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
 14708
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14709
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14710
                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
 14711
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14712
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14713
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14714
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14715
            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
 14716
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14717
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14718
    }/*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
 14719
    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
 14720
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14721
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14722
 *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
 14723
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14724
    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
 14725
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14726
        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
 14727
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14728
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14729
            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
 14730
            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
 14731
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14732
            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
 14733
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14734
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14735
                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
 14736
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14737
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14738
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14739
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14740
            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
 14741
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14742
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14743
    }/*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
 14744
    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
 14745
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14746
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14747
 *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
 14748
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14749
    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
 14750
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14751
        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
 14752
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14753
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14754
            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
 14755
            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
 14756
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14757
            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
 14758
            {
873a5b60a7ea Fixed -I library 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
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14760
                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
 14761
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14762
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14763
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14764
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14765
            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
 14766
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14767
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14768
    }/*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
 14769
    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
 14770
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14771
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14772
 *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
 14773
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14774
    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
 14775
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14776
        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
 14777
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14778
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14779
            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
 14780
            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
 14781
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14782
            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
 14783
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14784
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14785
                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
 14786
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14787
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14788
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14789
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14790
            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
 14791
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14792
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14793
    }/*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
 14794
    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
 14795
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14796
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14797
 *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
 14798
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14799
    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
 14800
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14801
        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
 14802
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14803
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14804
            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
 14805
            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
 14806
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14807
            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
 14808
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14809
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14810
                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
 14811
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14812
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14813
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14814
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14815
            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
 14816
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14817
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14818
    }/*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
 14819
    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
 14820
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14821
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14822
 *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
 14823
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14824
    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
 14825
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14826
        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
 14827
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14828
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14829
            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
 14830
            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
 14831
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14832
            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
 14833
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14834
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14835
                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
 14836
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14837
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14838
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14839
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14840
            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
 14841
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14842
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14843
    }/*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
 14844
    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
 14845
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14846
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14847
 *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
 14848
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14849
    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
 14850
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14851
        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
 14852
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14853
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14854
            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
 14855
            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
 14856
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14857
            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
 14858
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14859
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14860
                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
 14861
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14862
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14863
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14864
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14865
            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
 14866
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14867
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14868
    }/*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
 14869
    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
 14870
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14871
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14872
 *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
 14873
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14874
    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
 14875
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14876
        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
 14877
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14878
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14879
            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
 14880
            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
 14881
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14882
            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
 14883
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14884
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14885
                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
 14886
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14887
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14888
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14889
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14890
            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
 14891
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14892
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14893
    }/*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
 14894
    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
 14895
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14896
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14897
 *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
 14898
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14899
    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
 14900
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14901
        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
 14902
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14903
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14904
            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
 14905
            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
 14906
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14907
            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
 14908
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14909
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14910
                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
 14911
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14912
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14913
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14914
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14915
            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
 14916
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14917
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14918
    }/*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
 14919
    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
 14920
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14921
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14922
 *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
 14923
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14924
    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
 14925
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14926
        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
 14927
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14928
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14929
            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
 14930
            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
 14931
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14932
            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
 14933
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14934
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14935
                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
 14936
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14937
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14938
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14939
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14940
            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
 14941
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14942
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14943
    }/*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
 14944
    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
 14945
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14946
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14947
 *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
 14948
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14949
    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
 14950
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14951
        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
 14952
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14953
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14954
            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
 14955
            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
 14956
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14957
            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
 14958
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14959
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14960
                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
 14961
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14962
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14963
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14964
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14965
            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
 14966
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14967
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14968
    }/*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
 14969
    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
 14970
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14971
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14972
 *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
 14973
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14974
    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
 14975
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14976
        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
 14977
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14978
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14979
            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
 14980
            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
 14981
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 14982
            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
 14983
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14984
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14985
                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
 14986
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14987
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14988
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14989
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14990
            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
 14991
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14992
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14993
    }/*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
 14994
    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
 14995
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14996
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14997
 *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
 14998
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14999
    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
 15000
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15001
        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
 15002
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15003
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15004
            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
 15005
            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
 15006
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15007
            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
 15008
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15009
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15010
                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
 15011
                return return_type_symbol;
873a5b60a7ea Fixed -I library 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
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15013
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15014
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15015
            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
 15016
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15017
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15018
    }/*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
 15019
    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
 15020
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15021
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15022
 *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
 15023
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15024
    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
 15025
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15026
        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
 15027
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15028
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15029
            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
 15030
            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
 15031
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15032
            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
 15033
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15034
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15035
                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
 15036
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15037
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15038
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15039
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15040
            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
 15041
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15042
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15043
    }/*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
 15044
    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
 15045
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15046
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15047
 *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
 15048
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15049
    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
 15050
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15051
        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
 15052
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15053
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15054
            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
 15055
            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
 15056
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15057
            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
 15058
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15059
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15060
                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
 15061
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15062
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15063
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15064
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15065
            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
 15066
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15067
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15068
    }/*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
 15069
    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
 15070
873a5b60a7ea Fixed -I library 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
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15072
 *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
 15073
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15074
    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
 15075
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15076
        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
 15077
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15078
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15079
            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
 15080
            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
 15081
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15082
            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
 15083
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15084
        
873a5b60a7ea Fixed -I library 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
                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
 15086
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15087
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15088
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15089
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15090
            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
 15091
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15092
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15093
    }/*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
 15094
    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
 15095
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15096
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15097
 *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
 15098
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15099
    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
 15100
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15101
        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
 15102
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15103
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15104
            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
 15105
            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
 15106
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15107
            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
 15108
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15109
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15110
                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
 15111
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15112
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15113
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15114
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15115
            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
 15116
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15117
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15118
    }/*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
 15119
    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
 15120
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15121
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15122
 *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
 15123
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15124
    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
 15125
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15126
        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
 15127
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15128
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15129
            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
 15130
            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
 15131
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15132
            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
 15133
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15134
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15135
                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
 15136
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15137
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15138
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15139
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15140
            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
 15141
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15142
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15143
    }/*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
 15144
    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
 15145
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15146
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15147
 *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
 15148
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15149
    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
 15150
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15151
        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
 15152
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15153
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15154
            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
 15155
            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
 15156
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15157
            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
 15158
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15159
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15160
                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
 15161
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15162
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15163
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15164
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15165
            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
 15166
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15167
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15168
    }/*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
 15169
    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
 15170
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15171
/****
873a5b60a7ea Fixed -I library 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
 *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
 15173
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15174
    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
 15175
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15176
        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
 15177
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15178
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15179
            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
 15180
            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
 15181
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15182
            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
 15183
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15184
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15185
                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
 15186
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15187
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15188
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15189
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15190
            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
 15191
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15192
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15193
    }/*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
 15194
    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
 15195
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15196
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15197
 *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
 15198
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15199
    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
 15200
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15201
        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
 15202
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15203
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15204
            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
 15205
            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
 15206
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15207
            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
 15208
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15209
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15210
                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
 15211
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15212
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15213
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15214
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15215
            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
 15216
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15217
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15218
    }/*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
 15219
    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
 15220
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15221
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15222
 *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
 15223
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15224
    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
 15225
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15226
        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
 15227
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15228
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15229
            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
 15230
            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
 15231
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15232
            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
 15233
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15234
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15235
                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
 15236
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15237
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15238
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15239
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15240
            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
 15241
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15242
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15243
    }/*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
 15244
    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
 15245
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15246
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15247
 *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
 15248
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15249
    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
 15250
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15251
        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
 15252
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15253
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15254
            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
 15255
            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
 15256
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15257
            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
 15258
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15259
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15260
                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
 15261
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15262
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15263
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15264
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15265
            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
 15266
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15267
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15268
    }/*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
 15269
    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
 15270
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15271
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15272
 *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
 15273
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15274
    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
 15275
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15276
        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
 15277
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15278
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15279
            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
 15280
            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
 15281
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15282
            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
 15283
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15284
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15285
                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
 15286
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15287
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15288
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15289
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15290
            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
 15291
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15292
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15293
    }/*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
 15294
    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
 15295
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15296
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15297
 *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
 15298
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15299
    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
 15300
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15301
        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
 15302
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15303
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15304
            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
 15305
            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
 15306
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15307
            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
 15308
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15309
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15310
                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
 15311
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15312
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15313
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15314
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15315
            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
 15316
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15317
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15318
    }/*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
 15319
    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
 15320
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15321
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15322
 *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
 15323
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15324
    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
 15325
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15326
        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
 15327
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15328
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15329
            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
 15330
            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
 15331
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15332
            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
 15333
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15334
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15335
                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
 15336
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15337
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15338
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15339
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15340
            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
 15341
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15342
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15343
    }/*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
 15344
    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
 15345
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15346
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15347
 *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
 15348
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15349
    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
 15350
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15351
        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
 15352
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15353
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15354
            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
 15355
            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
 15356
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15357
            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
 15358
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15359
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15360
                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
 15361
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15362
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15363
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15364
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15365
            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
 15366
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15367
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15368
    }/*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
 15369
    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
 15370
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15371
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15372
 *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
 15373
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15374
    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
 15375
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15376
        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
 15377
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15378
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15379
            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
 15380
            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
 15381
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15382
            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
 15383
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15384
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15385
                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
 15386
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15387
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15388
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15389
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15390
            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
 15391
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15392
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15393
    }/*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
 15394
    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
 15395
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15396
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15397
 *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
 15398
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15399
    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
 15400
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15401
        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
 15402
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15403
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15404
            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
 15405
            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
 15406
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15407
            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
 15408
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15409
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15410
                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
 15411
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15412
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15413
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15414
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15415
            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
 15416
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15417
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15418
    }/*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
 15419
    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
 15420
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15421
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15422
 *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
 15423
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15424
    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
 15425
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15426
        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
 15427
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15428
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15429
            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
 15430
            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
 15431
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15432
            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
 15433
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15434
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15435
                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
 15436
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15437
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15438
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15439
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15440
            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
 15441
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15442
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15443
    }/*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
 15444
    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
 15445
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15446
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15447
 *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
 15448
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15449
    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
 15450
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15451
        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
 15452
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15453
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15454
            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
 15455
            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
 15456
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15457
            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
 15458
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15459
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15460
                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
 15461
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15462
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15463
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15464
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15465
            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
 15466
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15467
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15468
    }/*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
 15469
    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
 15470
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15471
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15472
 *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
 15473
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15474
    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
 15475
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15476
        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
 15477
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15478
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15479
            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
 15480
            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
 15481
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15482
            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
 15483
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15484
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15485
                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
 15486
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15487
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15488
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15489
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15490
            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
 15491
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15492
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15493
    }/*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
 15494
    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
 15495
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15496
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15497
 *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
 15498
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15499
    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
 15500
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15501
        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
 15502
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15503
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15504
            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
 15505
            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
 15506
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15507
            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
 15508
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15509
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15510
                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
 15511
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15512
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15513
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15514
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15515
            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
 15516
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15517
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15518
    }/*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
 15519
    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
 15520
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15521
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15522
 *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
 15523
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15524
    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
 15525
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15526
        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
 15527
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15528
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15529
            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
 15530
            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
 15531
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15532
            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
 15533
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15534
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15535
                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
 15536
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15537
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15538
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15539
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15540
            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
 15541
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15542
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15543
    }/*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
 15544
    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
 15545
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15546
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15547
 *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
 15548
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15549
    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
 15550
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15551
        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
 15552
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15553
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15554
            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
 15555
            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
 15556
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15557
            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
 15558
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15559
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15560
                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
 15561
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15562
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15563
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15564
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15565
            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
 15566
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15567
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15568
    }/*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
 15569
    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
 15570
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15571
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15572
 *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
 15573
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15574
    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
 15575
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15576
        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
 15577
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15578
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15579
            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
 15580
            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
 15581
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15582
            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
 15583
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15584
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15585
                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
 15586
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15587
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15588
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15589
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15590
            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
 15591
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15592
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15593
    }/*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
 15594
    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
 15595
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15596
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15597
 *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
 15598
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15599
    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
 15600
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15601
        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
 15602
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15603
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15604
            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
 15605
            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
 15606
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15607
            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
 15608
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15609
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15610
                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
 15611
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15612
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15613
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15614
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15615
            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
 15616
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15617
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15618
    }/*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
 15619
    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
 15620
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15621
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15622
 *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
 15623
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15624
    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
 15625
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15626
        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
 15627
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15628
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15629
            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
 15630
            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
 15631
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15632
            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
 15633
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15634
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15635
                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
 15636
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15637
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15638
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15639
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15640
            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
 15641
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15642
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15643
    }/*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
 15644
    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
 15645
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15646
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15647
 *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
 15648
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15649
    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
 15650
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15651
        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
 15652
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15653
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15654
            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
 15655
            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
 15656
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15657
            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
 15658
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15659
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15660
                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
 15661
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15662
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15663
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15664
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15665
            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
 15666
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15667
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15668
    }/*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
 15669
    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
 15670
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15671
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15672
 *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
 15673
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15674
    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
 15675
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15676
        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
 15677
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15678
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15679
            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
 15680
            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
 15681
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15682
            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
 15683
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15684
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15685
                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
 15686
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15687
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15688
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15689
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15690
            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
 15691
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15692
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15693
    }/*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
 15694
    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
 15695
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15696
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15697
 *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
 15698
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15699
    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
 15700
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15701
        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
 15702
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15703
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15704
            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
 15705
            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
 15706
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15707
            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
 15708
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15709
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15710
                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
 15711
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15712
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15713
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15714
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15715
            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
 15716
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15717
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15718
    }/*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
 15719
    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
 15720
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15721
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15722
 *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
 15723
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15724
    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
 15725
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15726
        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
 15727
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15728
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15729
            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
 15730
            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
 15731
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15732
            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
 15733
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15734
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15735
                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
 15736
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15737
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15738
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15739
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15740
            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
 15741
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15742
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15743
    }/*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
 15744
    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
 15745
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15746
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15747
 *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
 15748
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15749
    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
 15750
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15751
        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
 15752
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15753
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15754
            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
 15755
            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
 15756
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15757
            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
 15758
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15759
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15760
                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
 15761
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15762
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15763
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15764
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15765
            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
 15766
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15767
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15768
    }/*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
 15769
    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
 15770
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15771
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15772
 *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
 15773
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15774
    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
 15775
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15776
        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
 15777
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15778
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15779
            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
 15780
            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
 15781
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15782
            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
 15783
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15784
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15785
                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
 15786
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15787
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15788
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15789
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15790
            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
 15791
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15792
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15793
    }/*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
 15794
    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
 15795
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15796
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15797
 *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
 15798
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15799
    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
 15800
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15801
        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
 15802
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15803
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15804
            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
 15805
            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
 15806
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15807
            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
 15808
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15809
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15810
                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
 15811
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15812
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15813
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15814
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15815
            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
 15816
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15817
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15818
    }/*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
 15819
    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
 15820
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15821
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15822
 *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
 15823
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15824
    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
 15825
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15826
        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
 15827
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15828
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15829
            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
 15830
            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
 15831
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15832
            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
 15833
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15834
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15835
                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
 15836
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15837
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15838
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15839
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15840
            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
 15841
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15842
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15843
    }/*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
 15844
    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
 15845
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15846
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15847
 *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
 15848
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15849
    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
 15850
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15851
        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
 15852
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15853
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15854
            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
 15855
            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
 15856
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15857
            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
 15858
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15859
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15860
                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
 15861
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15862
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15863
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15864
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15865
            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
 15866
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15867
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15868
    }/*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
 15869
    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
 15870
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15871
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15872
 *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
 15873
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15874
    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
 15875
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15876
        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
 15877
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15878
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15879
            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
 15880
            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
 15881
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15882
            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
 15883
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15884
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15885
                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
 15886
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15887
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15888
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15889
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15890
            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
 15891
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15892
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15893
    }/*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
 15894
    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
 15895
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15896
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15897
 *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
 15898
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15899
    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
 15900
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15901
        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
 15902
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15903
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15904
            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
 15905
            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
 15906
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15907
            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
 15908
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15909
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15910
                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
 15911
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15912
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15913
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15914
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15915
            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
 15916
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15917
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15918
    }/*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
 15919
    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
 15920
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15921
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15922
 *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
 15923
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15924
    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
 15925
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15926
        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
 15927
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15928
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15929
            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
 15930
            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
 15931
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15932
            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
 15933
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15934
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15935
                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
 15936
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15937
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15938
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15939
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15940
            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
 15941
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15942
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15943
    }/*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
 15944
    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
 15945
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15946
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15947
 *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
 15948
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15949
    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
 15950
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15951
        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
 15952
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15953
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15954
            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
 15955
            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
 15956
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15957
            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
 15958
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15959
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15960
                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
 15961
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15962
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15963
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15964
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15965
            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
 15966
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15967
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15968
    }/*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
 15969
    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
 15970
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15971
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15972
 *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
 15973
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15974
    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
 15975
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15976
        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
 15977
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15978
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15979
            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
 15980
            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
 15981
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 15982
            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
 15983
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15984
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15985
                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
 15986
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15987
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15988
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15989
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15990
            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
 15991
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15992
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15993
    }/*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
 15994
    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
 15995
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15996
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15997
 *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
 15998
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15999
    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
 16000
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16001
        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
 16002
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16003
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16004
            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
 16005
            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
 16006
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16007
            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
 16008
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16009
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16010
                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
 16011
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16012
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16013
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16014
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16015
            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
 16016
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16017
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16018
    }/*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
 16019
    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
 16020
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16021
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16022
 *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
 16023
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16024
    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
 16025
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16026
        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
 16027
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16028
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16029
            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
 16030
            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
 16031
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16032
            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
 16033
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16034
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16035
                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
 16036
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16037
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16038
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16039
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16040
            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
 16041
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16042
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16043
    }/*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
 16044
    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
 16045
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16046
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16047
 *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
 16048
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16049
    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
 16050
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16051
        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
 16052
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16053
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16054
            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
 16055
            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
 16056
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16057
            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
 16058
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16059
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16060
                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
 16061
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16062
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16063
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16064
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16065
            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
 16066
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16067
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16068
    }/*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
 16069
    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
 16070
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16071
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16072
 *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
 16073
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16074
    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
 16075
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16076
        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
 16077
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16078
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16079
            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
 16080
            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
 16081
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16082
            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
 16083
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16084
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16085
                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
 16086
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16087
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16088
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16089
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16090
            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
 16091
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16092
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16093
    }/*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
 16094
    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
 16095
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16096
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16097
 *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
 16098
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16099
    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
 16100
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16101
        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
 16102
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16103
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16104
            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
 16105
            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
 16106
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16107
            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
 16108
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16109
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16110
                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
 16111
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16112
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16113
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16114
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16115
            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
 16116
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16117
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16118
    }/*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
 16119
    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
 16120
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16121
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16122
 *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
 16123
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16124
    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
 16125
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16126
        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
 16127
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16128
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16129
            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
 16130
            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
 16131
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16132
            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
 16133
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16134
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16135
                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
 16136
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16137
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16138
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16139
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16140
            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
 16141
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16142
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16143
    }/*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
 16144
    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
 16145
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16146
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16147
 *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
 16148
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16149
    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
 16150
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16151
        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
 16152
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16153
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16154
            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
 16155
            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
 16156
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16157
            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
 16158
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16159
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16160
                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
 16161
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16162
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16163
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16164
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16165
            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
 16166
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16167
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16168
    }/*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
 16169
    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
 16170
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16171
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16172
 *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
 16173
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16174
    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
 16175
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16176
        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
 16177
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16178
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16179
            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
 16180
            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
 16181
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16182
            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
 16183
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16184
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16185
                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
 16186
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16187
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16188
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16189
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16190
            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
 16191
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16192
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16193
    }/*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
 16194
    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
 16195
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16196
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16197
 *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
 16198
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16199
    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
 16200
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16201
        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
 16202
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16203
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16204
            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
 16205
            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
 16206
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16207
            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
 16208
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16209
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16210
                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
 16211
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16212
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16213
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16214
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16215
            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
 16216
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16217
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16218
    }/*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
 16219
    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
 16220
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16221
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16222
 *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
 16223
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16224
    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
 16225
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16226
        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
 16227
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16228
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16229
            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
 16230
            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
 16231
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16232
            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
 16233
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16234
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16235
                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
 16236
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16237
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16238
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16239
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16240
            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
 16241
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16242
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16243
    }/*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
 16244
    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
 16245
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16246
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16247
 *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
 16248
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16249
    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
 16250
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16251
        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
 16252
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16253
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16254
            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
 16255
            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
 16256
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16257
            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
 16258
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16259
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16260
                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
 16261
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16262
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16263
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16264
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16265
            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
 16266
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16267
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16268
    }/*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
 16269
    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
 16270
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16271
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16272
 *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
 16273
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16274
    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
 16275
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16276
        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
 16277
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16278
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16279
            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
 16280
            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
 16281
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16282
            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
 16283
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16284
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16285
                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
 16286
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16287
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16288
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16289
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16290
            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
 16291
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16292
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16293
    }/*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
 16294
    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
 16295
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16296
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16297
 *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
 16298
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16299
    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
 16300
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16301
        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
 16302
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16303
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16304
            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
 16305
            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
 16306
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16307
            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
 16308
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16309
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16310
                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
 16311
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16312
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16313
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16314
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16315
            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
 16316
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16317
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16318
    }/*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
 16319
    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
 16320
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16321
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16322
 *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
 16323
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16324
    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
 16325
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16326
        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
 16327
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16328
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16329
            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
 16330
            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
 16331
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16332
            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
 16333
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16334
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16335
                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
 16336
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16337
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16338
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16339
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16340
            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
 16341
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16342
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16343
    }/*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
 16344
    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
 16345
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16346
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16347
 *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
 16348
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16349
    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
 16350
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16351
        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
 16352
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16353
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16354
            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
 16355
            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
 16356
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16357
            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
 16358
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16359
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16360
                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
 16361
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16362
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16363
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16364
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16365
            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
 16366
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16367
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16368
    }/*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
 16369
    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
 16370
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16371
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16372
 *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
 16373
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16374
    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
 16375
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16376
        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
 16377
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16378
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16379
            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
 16380
            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
 16381
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16382
            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
 16383
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16384
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16385
                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
 16386
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16387
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16388
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16389
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16390
            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
 16391
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16392
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16393
    }/*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
 16394
    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
 16395
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16396
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16397
 *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
 16398
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16399
    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
 16400
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16401
        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
 16402
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16403
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16404
            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
 16405
            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
 16406
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16407
            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
 16408
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16409
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16410
                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
 16411
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16412
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16413
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16414
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16415
            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
 16416
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16417
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16418
    }/*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
 16419
    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
 16420
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16421
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16422
 *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
 16423
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16424
    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
 16425
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16426
        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
 16427
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16428
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16429
            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
 16430
            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
 16431
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16432
            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
 16433
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16434
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16435
                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
 16436
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16437
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16438
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16439
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16440
            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
 16441
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16442
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16443
    }/*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
 16444
    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
 16445
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16446
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16447
 *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
 16448
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16449
    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
 16450
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16451
        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
 16452
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16453
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16454
            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
 16455
            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
 16456
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16457
            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
 16458
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16459
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16460
                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
 16461
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16462
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16463
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16464
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16465
            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
 16466
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16467
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16468
    }/*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
 16469
    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
 16470
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16471
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16472
 *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
 16473
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16474
    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
 16475
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16476
        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
 16477
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16478
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16479
            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
 16480
            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
 16481
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16482
            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
 16483
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16484
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16485
                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
 16486
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16487
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16488
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16489
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16490
            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
 16491
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16492
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16493
    }/*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
 16494
    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
 16495
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16496
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16497
 *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
 16498
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16499
    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
 16500
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16501
        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
 16502
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16503
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16504
            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
 16505
            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
 16506
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16507
            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
 16508
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16509
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16510
                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
 16511
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16512
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16513
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16514
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16515
            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
 16516
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16517
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16518
    }/*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
 16519
    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
 16520
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16521
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16522
 *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
 16523
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16524
    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
 16525
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16526
        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
 16527
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16528
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16529
            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
 16530
            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
 16531
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16532
            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
 16533
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16534
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16535
                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
 16536
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16537
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16538
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16539
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16540
            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
 16541
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16542
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16543
    }/*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
 16544
    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
 16545
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16546
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16547
 *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
 16548
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16549
    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
 16550
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16551
        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
 16552
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16553
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16554
            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
 16555
            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
 16556
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16557
            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
 16558
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16559
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16560
                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
 16561
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16562
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16563
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16564
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16565
            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
 16566
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16567
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16568
    }/*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
 16569
    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
 16570
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16571
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16572
 *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
 16573
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16574
    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
 16575
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16576
        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
 16577
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16578
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16579
            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
 16580
            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
 16581
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16582
            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
 16583
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16584
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16585
                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
 16586
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16587
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16588
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16589
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16590
            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
 16591
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16592
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16593
    }/*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
 16594
    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
 16595
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16596
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16597
 *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
 16598
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16599
    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
 16600
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16601
        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
 16602
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16603
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16604
            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
 16605
            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
 16606
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16607
            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
 16608
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16609
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16610
                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
 16611
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16612
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16613
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16614
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16615
            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
 16616
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16617
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16618
    }/*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
 16619
    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
 16620
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16621
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16622
 *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
 16623
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16624
    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
 16625
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16626
        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
 16627
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16628
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16629
            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
 16630
            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
 16631
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16632
            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
 16633
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16634
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16635
                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
 16636
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16637
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16638
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16639
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16640
            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
 16641
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16642
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16643
    }/*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
 16644
    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
 16645
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16646
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16647
 *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
 16648
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16649
    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
 16650
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16651
        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
 16652
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16653
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16654
            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
 16655
            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
 16656
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16657
            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
 16658
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16659
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16660
                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
 16661
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16662
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16663
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16664
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16665
            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
 16666
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16667
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16668
    }/*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
 16669
    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
 16670
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16671
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16672
 *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
 16673
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16674
    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
 16675
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16676
        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
 16677
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16678
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16679
            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
 16680
            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
 16681
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16682
            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
 16683
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16684
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16685
                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
 16686
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16687
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16688
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16689
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16690
            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
 16691
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16692
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16693
    }/*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
 16694
    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
 16695
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16696
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16697
 *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
 16698
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16699
    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
 16700
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16701
        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
 16702
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16703
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16704
            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
 16705
            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
 16706
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16707
            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
 16708
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16709
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16710
                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
 16711
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16712
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16713
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16714
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16715
            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
 16716
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16717
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16718
    }/*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
 16719
    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
 16720
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16721
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16722
 *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
 16723
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16724
    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
 16725
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16726
        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
 16727
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16728
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16729
            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
 16730
            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
 16731
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16732
            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
 16733
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16734
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16735
                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
 16736
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16737
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16738
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16739
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16740
            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
 16741
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16742
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16743
    }/*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
 16744
    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
 16745
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16746
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16747
 *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
 16748
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16749
    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
 16750
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16751
        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
 16752
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16753
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16754
            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
 16755
            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
 16756
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16757
            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
 16758
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16759
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16760
                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
 16761
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16762
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16763
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16764
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16765
            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
 16766
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16767
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16768
    }/*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
 16769
    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
 16770
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16771
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16772
 *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
 16773
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16774
    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
 16775
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16776
        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
 16777
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16778
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16779
            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
 16780
            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
 16781
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16782
            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
 16783
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16784
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16785
                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
 16786
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16787
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16788
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16789
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16790
            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
 16791
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16792
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16793
    }/*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
 16794
    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
 16795
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16796
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16797
 *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
 16798
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16799
    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
 16800
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16801
        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
 16802
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16803
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16804
            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
 16805
            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
 16806
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16807
            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
 16808
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16809
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16810
                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
 16811
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16812
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16813
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16814
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16815
            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
 16816
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16817
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16818
    }/*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
 16819
    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
 16820
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16821
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16822
 *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
 16823
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16824
    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
 16825
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16826
        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
 16827
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16828
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16829
            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
 16830
            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
 16831
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16832
            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
 16833
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16834
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16835
                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
 16836
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16837
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16838
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16839
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16840
            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
 16841
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16842
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16843
    }/*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
 16844
    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
 16845
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16846
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16847
 *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
 16848
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16849
    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
 16850
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16851
        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
 16852
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16853
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16854
            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
 16855
            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
 16856
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16857
            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
 16858
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16859
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16860
                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
 16861
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16862
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16863
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16864
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16865
            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
 16866
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16867
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16868
    }/*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
 16869
    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
 16870
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16871
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16872
 *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
 16873
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16874
    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
 16875
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16876
        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
 16877
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16878
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16879
            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
 16880
            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
 16881
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16882
            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
 16883
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16884
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16885
                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
 16886
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16887
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16888
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16889
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16890
            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
 16891
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16892
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16893
    }/*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
 16894
    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
 16895
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16896
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16897
 *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
 16898
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16899
    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
 16900
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16901
        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
 16902
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16903
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16904
            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
 16905
            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
 16906
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16907
            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
 16908
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16909
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16910
                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
 16911
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16912
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16913
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16914
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16915
            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
 16916
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16917
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16918
    }/*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
 16919
    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
 16920
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16921
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16922
 *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
 16923
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16924
    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
 16925
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16926
        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
 16927
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16928
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16929
            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
 16930
            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
 16931
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16932
            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
 16933
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16934
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16935
                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
 16936
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16937
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16938
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16939
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16940
            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
 16941
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16942
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16943
    }/*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
 16944
    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
 16945
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16946
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16947
 *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
 16948
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16949
    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
 16950
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16951
        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
 16952
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16953
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16954
            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
 16955
            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
 16956
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16957
            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
 16958
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16959
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16960
                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
 16961
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16962
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16963
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16964
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16965
            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
 16966
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16967
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16968
    }/*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
 16969
    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
 16970
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16971
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16972
 *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
 16973
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16974
    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
 16975
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16976
        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
 16977
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16978
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16979
            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
 16980
            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
 16981
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 16982
            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
 16983
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16984
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16985
                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
 16986
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16987
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16988
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16989
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16990
            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
 16991
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16992
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16993
    }/*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
 16994
    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
 16995
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16996
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16997
 *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
 16998
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 16999
    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
 17000
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17001
        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
 17002
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17003
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17004
            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
 17005
            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
 17006
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17007
            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
 17008
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17009
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17010
                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
 17011
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17012
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17013
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17014
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17015
            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
 17016
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17017
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17018
    }/*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
 17019
    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
 17020
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17021
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17022
 *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
 17023
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17024
    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
 17025
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17026
        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
 17027
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17028
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17029
            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
 17030
            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
 17031
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17032
            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
 17033
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17034
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17035
                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
 17036
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17037
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17038
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17039
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17040
            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
 17041
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17042
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17043
    }/*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
 17044
    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
 17045
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17046
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17047
 *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
 17048
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17049
    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
 17050
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17051
        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
 17052
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17053
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17054
            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
 17055
            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
 17056
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17057
            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
 17058
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17059
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17060
                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
 17061
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17062
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17063
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17064
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17065
            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
 17066
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17067
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17068
    }/*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
 17069
    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
 17070
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17071
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17072
 *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
 17073
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17074
    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
 17075
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17076
        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
 17077
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17078
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17079
            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
 17080
            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
 17081
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17082
            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
 17083
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17084
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17085
                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
 17086
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17087
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17088
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17089
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17090
            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
 17091
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17092
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17093
    }/*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
 17094
    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
 17095
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17096
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17097
 *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
 17098
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17099
    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
 17100
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17101
        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
 17102
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17103
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17104
            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
 17105
            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
 17106
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17107
            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
 17108
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17109
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17110
                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
 17111
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17112
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17113
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17114
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17115
            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
 17116
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17117
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17118
    }/*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
 17119
    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
 17120
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17121
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17122
 *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
 17123
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17124
    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
 17125
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17126
        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
 17127
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17128
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17129
            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
 17130
            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
 17131
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17132
            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
 17133
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17134
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17135
                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
 17136
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17137
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17138
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17139
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17140
            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
 17141
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17142
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17143
    }/*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
 17144
    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
 17145
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17146
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17147
 *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
 17148
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17149
    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
 17150
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17151
        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
 17152
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17153
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17154
            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
 17155
            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
 17156
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17157
            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
 17158
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17159
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17160
                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
 17161
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17162
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17163
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17164
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17165
            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
 17166
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17167
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17168
    }/*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
 17169
    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
 17170
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17171
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17172
 *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
 17173
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17174
    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
 17175
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17176
        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
 17177
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17178
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17179
            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
 17180
            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
 17181
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17182
            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
 17183
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17184
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17185
                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
 17186
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17187
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17188
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17189
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17190
            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
 17191
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17192
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17193
    }/*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
 17194
    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
 17195
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17196
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17197
 *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
 17198
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17199
    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
 17200
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17201
        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
 17202
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17203
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17204
            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
 17205
            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
 17206
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17207
            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
 17208
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17209
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17210
                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
 17211
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17212
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17213
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17214
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17215
            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
 17216
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17217
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17218
    }/*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
 17219
    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
 17220
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17221
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17222
 *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
 17223
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17224
    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
 17225
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17226
        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
 17227
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17228
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17229
            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
 17230
            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
 17231
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17232
            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
 17233
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17234
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17235
                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
 17236
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17237
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17238
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17239
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17240
            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
 17241
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17242
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17243
    }/*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
 17244
    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
 17245
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17246
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17247
 *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
 17248
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17249
    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
 17250
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17251
        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
 17252
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17253
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17254
            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
 17255
            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
 17256
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17257
            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
 17258
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17259
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17260
                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
 17261
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17262
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17263
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17264
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17265
            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
 17266
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17267
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17268
    }/*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
 17269
    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
 17270
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17271
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17272
 *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
 17273
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17274
    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
 17275
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17276
        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
 17277
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17278
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17279
            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
 17280
            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
 17281
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17282
            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
 17283
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17284
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17285
                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
 17286
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17287
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17288
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17289
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17290
            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
 17291
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17292
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17293
    }/*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
 17294
    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
 17295
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17296
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17297
 *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
 17298
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17299
    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
 17300
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17301
        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
 17302
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17303
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17304
            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
 17305
            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
 17306
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17307
            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
 17308
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17309
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17310
                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
 17311
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17312
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17313
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17314
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17315
            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
 17316
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17317
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17318
    }/*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
 17319
    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
 17320
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17321
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17322
 *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
 17323
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17324
    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
 17325
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17326
        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
 17327
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17328
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17329
            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
 17330
            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
 17331
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17332
            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
 17333
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17334
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17335
                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
 17336
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17337
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17338
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17339
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17340
            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
 17341
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17342
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17343
    }/*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
 17344
    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
 17345
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17346
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17347
 *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
 17348
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17349
    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
 17350
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17351
        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
 17352
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17353
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17354
            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
 17355
            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
 17356
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17357
            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
 17358
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17359
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17360
                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
 17361
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17362
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17363
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17364
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17365
            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
 17366
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17367
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17368
    }/*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
 17369
    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
 17370
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17371
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17372
 *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
 17373
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17374
    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
 17375
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17376
        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
 17377
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17378
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17379
            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
 17380
            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
 17381
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17382
            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
 17383
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17384
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17385
                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
 17386
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17387
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17388
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17389
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17390
            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
 17391
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17392
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17393
    }/*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
 17394
    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
 17395
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17396
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17397
 *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
 17398
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17399
    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
 17400
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17401
        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
 17402
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17403
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17404
            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
 17405
            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
 17406
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17407
            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
 17408
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17409
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17410
                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
 17411
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17412
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17413
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17414
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17415
            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
 17416
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17417
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17418
    }/*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
 17419
    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
 17420
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17421
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17422
 *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
 17423
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17424
    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
 17425
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17426
        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
 17427
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17428
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17429
            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
 17430
            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
 17431
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17432
            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
 17433
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17434
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17435
                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
 17436
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17437
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17438
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17439
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17440
            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
 17441
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17442
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17443
    }/*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
 17444
    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
 17445
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17446
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17447
 *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
 17448
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17449
    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
 17450
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17451
        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
 17452
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17453
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17454
            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
 17455
            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
 17456
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17457
            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
 17458
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17459
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17460
                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
 17461
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17462
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17463
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17464
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17465
            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
 17466
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17467
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17468
    }/*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
 17469
    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
 17470
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17471
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17472
 *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
 17473
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17474
    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
 17475
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17476
        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
 17477
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17478
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17479
            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
 17480
            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
 17481
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17482
            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
 17483
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17484
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17485
                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
 17486
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17487
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17488
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17489
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17490
            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
 17491
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17492
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17493
    }/*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
 17494
    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
 17495
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17496
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17497
 *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
 17498
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17499
    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
 17500
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17501
        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
 17502
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17503
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17504
            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
 17505
            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
 17506
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17507
            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
 17508
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17509
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17510
                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
 17511
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17512
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17513
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17514
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17515
            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
 17516
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17517
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17518
    }/*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
 17519
    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
 17520
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17521
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17522
 *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
 17523
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17524
    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
 17525
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17526
        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
 17527
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17528
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17529
            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
 17530
            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
 17531
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17532
            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
 17533
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17534
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17535
                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
 17536
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17537
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17538
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17539
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17540
            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
 17541
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17542
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17543
    }/*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
 17544
    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
 17545
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17546
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17547
 *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
 17548
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17549
    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
 17550
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17551
        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
 17552
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17553
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17554
            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
 17555
            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
 17556
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17557
            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
 17558
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17559
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17560
                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
 17561
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17562
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17563
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17564
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17565
            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
 17566
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17567
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17568
    }/*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
 17569
    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
 17570
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17571
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17572
 *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
 17573
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17574
    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
 17575
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17576
        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
 17577
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17578
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17579
            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
 17580
            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
 17581
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17582
            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
 17583
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17584
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17585
                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
 17586
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17587
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17588
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17589
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17590
            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
 17591
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17592
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17593
    }/*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
 17594
    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
 17595
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17596
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17597
 *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
 17598
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17599
    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
 17600
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17601
        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
 17602
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17603
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17604
            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
 17605
            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
 17606
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17607
            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
 17608
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17609
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17610
                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
 17611
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17612
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17613
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17614
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17615
            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
 17616
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17617
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17618
    }/*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
 17619
    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
 17620
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17621
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17622
 *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
 17623
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17624
    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
 17625
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17626
        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
 17627
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17628
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17629
            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
 17630
            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
 17631
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17632
            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
 17633
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17634
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17635
                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
 17636
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17637
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17638
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17639
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17640
            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
 17641
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17642
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17643
    }/*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
 17644
    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
 17645
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17646
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17647
 *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
 17648
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17649
    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
 17650
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17651
        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
 17652
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17653
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17654
            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
 17655
            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
 17656
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17657
            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
 17658
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17659
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17660
                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
 17661
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17662
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17663
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17664
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17665
            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
 17666
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17667
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17668
    }/*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
 17669
    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
 17670
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17671
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17672
 *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
 17673
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17674
    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
 17675
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17676
        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
 17677
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17678
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17679
            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
 17680
            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
 17681
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17682
            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
 17683
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17684
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17685
                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
 17686
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17687
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17688
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17689
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17690
            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
 17691
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17692
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17693
    }/*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
 17694
    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
 17695
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17696
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17697
 *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
 17698
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17699
    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
 17700
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17701
        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
 17702
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17703
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17704
            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
 17705
            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
 17706
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17707
            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
 17708
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17709
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17710
                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
 17711
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17712
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17713
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17714
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17715
            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
 17716
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17717
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17718
    }/*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
 17719
    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
 17720
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17721
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17722
 *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
 17723
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17724
    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
 17725
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17726
        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
 17727
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17728
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17729
            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
 17730
            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
 17731
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17732
            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
 17733
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17734
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17735
                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
 17736
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17737
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17738
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17739
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17740
            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
 17741
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17742
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17743
    }/*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
 17744
    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
 17745
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17746
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17747
 *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
 17748
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17749
    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
 17750
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17751
        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
 17752
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17753
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17754
            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
 17755
            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
 17756
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17757
            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
 17758
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17759
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17760
                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
 17761
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17762
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17763
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17764
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17765
            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
 17766
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17767
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17768
    }/*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
 17769
    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
 17770
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17771
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17772
 *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
 17773
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17774
    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
 17775
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17776
        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
 17777
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17778
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17779
            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
 17780
            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
 17781
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17782
            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
 17783
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17784
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17785
                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
 17786
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17787
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17788
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17789
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17790
            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
 17791
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17792
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17793
    }/*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
 17794
    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
 17795
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17796
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17797
 *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
 17798
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17799
    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
 17800
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17801
        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
 17802
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17803
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17804
            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
 17805
            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
 17806
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17807
            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
 17808
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17809
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17810
                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
 17811
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17812
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17813
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17814
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17815
            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
 17816
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17817
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17818
    }/*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
 17819
    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
 17820
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17821
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17822
 *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
 17823
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17824
    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
 17825
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17826
        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
 17827
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17828
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17829
            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
 17830
            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
 17831
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17832
            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
 17833
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17834
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17835
                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
 17836
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17837
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17838
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17839
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17840
            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
 17841
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17842
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17843
    }/*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
 17844
    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
 17845
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17846
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17847
 *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
 17848
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17849
    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
 17850
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17851
        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
 17852
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17853
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17854
            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
 17855
            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
 17856
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17857
            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
 17858
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17859
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17860
                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
 17861
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17862
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17863
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17864
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17865
            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
 17866
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17867
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17868
    }/*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
 17869
    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
 17870
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17871
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17872
 *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
 17873
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17874
    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
 17875
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17876
        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
 17877
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17878
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17879
            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
 17880
            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
 17881
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17882
            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
 17883
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17884
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17885
                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
 17886
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17887
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17888
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17889
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17890
            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
 17891
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17892
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17893
    }/*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
 17894
    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
 17895
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17896
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17897
 *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
 17898
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17899
    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
 17900
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17901
        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
 17902
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17903
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17904
            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
 17905
            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
 17906
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17907
            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
 17908
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17909
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17910
                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
 17911
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17912
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17913
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17914
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17915
            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
 17916
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17917
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17918
    }/*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
 17919
    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
 17920
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17921
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17922
 *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
 17923
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17924
    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
 17925
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17926
        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
 17927
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17928
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17929
            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
 17930
            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
 17931
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17932
            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
 17933
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17934
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17935
                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
 17936
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17937
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17938
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17939
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17940
            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
 17941
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17942
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17943
    }/*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
 17944
    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
 17945
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17946
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17947
 *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
 17948
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17949
    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
 17950
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17951
        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
 17952
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17953
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17954
            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
 17955
            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
 17956
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17957
            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
 17958
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17959
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17960
                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
 17961
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17962
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17963
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17964
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17965
            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
 17966
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17967
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17968
    }/*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
 17969
    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
 17970
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17971
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17972
 *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
 17973
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17974
    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
 17975
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17976
        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
 17977
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17978
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17979
            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
 17980
            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
 17981
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 17982
            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
 17983
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17984
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17985
                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
 17986
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17987
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17988
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17989
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17990
            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
 17991
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17992
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17993
    }/*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
 17994
    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
 17995
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17996
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17997
 *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
 17998
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 17999
    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
 18000
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18001
        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
 18002
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18003
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18004
            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
 18005
            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
 18006
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18007
            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
 18008
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18009
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18010
                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
 18011
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18012
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18013
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18014
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18015
            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
 18016
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18017
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18018
    }/*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
 18019
    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
 18020
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18021
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18022
 *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
 18023
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18024
    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
 18025
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18026
        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
 18027
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18028
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18029
            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
 18030
            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
 18031
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18032
            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
 18033
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18034
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18035
                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
 18036
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18037
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18038
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18039
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18040
            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
 18041
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18042
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18043
    }/*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
 18044
    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
 18045
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18046
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18047
 *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
 18048
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18049
    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
 18050
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18051
        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
 18052
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18053
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18054
            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
 18055
            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
 18056
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18057
            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
 18058
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18059
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18060
                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
 18061
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18062
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18063
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18064
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18065
            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
 18066
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18067
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18068
    }/*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
 18069
    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
 18070
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18071
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18072
 *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
 18073
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18074
    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
 18075
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18076
        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
 18077
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18078
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18079
            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
 18080
            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
 18081
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18082
            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
 18083
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18084
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18085
                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
 18086
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18087
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18088
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18089
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18090
            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
 18091
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18092
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18093
    }/*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
 18094
    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
 18095
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18096
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18097
 *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
 18098
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18099
    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
 18100
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18101
        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
 18102
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18103
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18104
            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
 18105
            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
 18106
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18107
            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
 18108
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18109
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18110
                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
 18111
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18112
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18113
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18114
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18115
            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
 18116
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18117
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18118
    }/*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
 18119
    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
 18120
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18121
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18122
 *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
 18123
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18124
    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
 18125
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18126
        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
 18127
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18128
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18129
            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
 18130
            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
 18131
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18132
            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
 18133
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18134
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18135
                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
 18136
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18137
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18138
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18139
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18140
            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
 18141
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18142
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18143
    }/*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
 18144
    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
 18145
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18146
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18147
 *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
 18148
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18149
    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
 18150
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18151
        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
 18152
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18153
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18154
            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
 18155
            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
 18156
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18157
            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
 18158
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18159
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18160
                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
 18161
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18162
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18163
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18164
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18165
            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
 18166
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18167
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18168
    }/*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
 18169
    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
 18170
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18171
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18172
 *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
 18173
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18174
    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
 18175
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18176
        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
 18177
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18178
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18179
            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
 18180
            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
 18181
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18182
            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
 18183
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18184
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18185
                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
 18186
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18187
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18188
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18189
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18190
            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
 18191
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18192
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18193
    }/*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
 18194
    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
 18195
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18196
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18197
 *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
 18198
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18199
    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
 18200
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18201
        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
 18202
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18203
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18204
            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
 18205
            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
 18206
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18207
            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
 18208
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18209
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18210
                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
 18211
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18212
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18213
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18214
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18215
            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
 18216
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18217
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18218
    }/*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
 18219
    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
 18220
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18221
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18222
 *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
 18223
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18224
    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
 18225
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18226
        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
 18227
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18228
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18229
            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
 18230
            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
 18231
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18232
            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
 18233
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18234
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18235
                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
 18236
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18237
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18238
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18239
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18240
            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
 18241
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18242
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18243
    }/*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
 18244
    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
 18245
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18246
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18247
 *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
 18248
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18249
    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
 18250
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18251
        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
 18252
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18253
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18254
            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
 18255
            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
 18256
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18257
            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
 18258
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18259
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18260
                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
 18261
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18262
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18263
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18264
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18265
            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
 18266
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18267
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18268
    }/*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
 18269
    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
 18270
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18271
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18272
 *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
 18273
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18274
    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
 18275
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18276
        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
 18277
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18278
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18279
            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
 18280
            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
 18281
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18282
            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
 18283
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18284
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18285
                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
 18286
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18287
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18288
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18289
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18290
            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
 18291
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18292
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18293
    }/*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
 18294
    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
 18295
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18296
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18297
 *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
 18298
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18299
    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
 18300
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18301
        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
 18302
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18303
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18304
            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
 18305
            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
 18306
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18307
            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
 18308
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18309
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18310
                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
 18311
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18312
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18313
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18314
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18315
            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
 18316
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18317
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18318
    }/*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
 18319
    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
 18320
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18321
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18322
 *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
 18323
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18324
    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
 18325
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18326
        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
 18327
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18328
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18329
            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
 18330
            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
 18331
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18332
            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
 18333
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18334
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18335
                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
 18336
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18337
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18338
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18339
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18340
            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
 18341
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18342
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18343
    }/*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
 18344
    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
 18345
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18346
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18347
 *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
 18348
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18349
    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
 18350
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18351
        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
 18352
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18353
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18354
            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
 18355
            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
 18356
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18357
            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
 18358
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18359
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18360
                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
 18361
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18362
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18363
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18364
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18365
            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
 18366
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18367
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18368
    }/*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
 18369
    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
 18370
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18371
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18372
 *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
 18373
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18374
    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
 18375
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18376
        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
 18377
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18378
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18379
            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
 18380
            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
 18381
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18382
            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
 18383
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18384
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18385
                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
 18386
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18387
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18388
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18389
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18390
            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
 18391
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18392
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18393
    }/*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
 18394
    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
 18395
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18396
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18397
 *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
 18398
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18399
    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
 18400
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18401
        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
 18402
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18403
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18404
            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
 18405
            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
 18406
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18407
            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
 18408
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18409
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18410
                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
 18411
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18412
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18413
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18414
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18415
            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
 18416
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18417
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18418
    }/*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
 18419
    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
 18420
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18421
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18422
 *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
 18423
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18424
    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
 18425
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18426
        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
 18427
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18428
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18429
            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
 18430
            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
 18431
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18432
            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
 18433
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18434
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18435
                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
 18436
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18437
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18438
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18439
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18440
            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
 18441
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18442
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18443
    }/*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
 18444
    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
 18445
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18446
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18447
 *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
 18448
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18449
    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
 18450
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18451
        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
 18452
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18453
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18454
            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
 18455
            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
 18456
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18457
            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
 18458
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18459
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18460
                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
 18461
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18462
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18463
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18464
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18465
            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
 18466
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18467
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18468
    }/*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
 18469
    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
 18470
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18471
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18472
 *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
 18473
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18474
    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
 18475
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18476
        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
 18477
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18478
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18479
            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
 18480
            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
 18481
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18482
            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
 18483
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18484
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18485
                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
 18486
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18487
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18488
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18489
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18490
            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
 18491
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18492
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18493
    }/*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
 18494
    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
 18495
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18496
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18497
 *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
 18498
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18499
    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
 18500
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18501
        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
 18502
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18503
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18504
            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
 18505
            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
 18506
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18507
            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
 18508
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18509
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18510
                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
 18511
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18512
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18513
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18514
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18515
            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
 18516
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18517
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18518
    }/*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
 18519
    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
 18520
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18521
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18522
 *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
 18523
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18524
    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
 18525
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18526
        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
 18527
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18528
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18529
            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
 18530
            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
 18531
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18532
            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
 18533
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18534
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18535
                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
 18536
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18537
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18538
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18539
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18540
            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
 18541
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18542
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18543
    }/*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
 18544
    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
 18545
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18546
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18547
 *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
 18548
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18549
    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
 18550
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18551
        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
 18552
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18553
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18554
            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
 18555
            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
 18556
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18557
            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
 18558
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18559
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18560
                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
 18561
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18562
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18563
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18564
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18565
            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
 18566
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18567
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18568
    }/*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
 18569
    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
 18570
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18571
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18572
 *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
 18573
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18574
    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
 18575
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18576
        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
 18577
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18578
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18579
            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
 18580
            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
 18581
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18582
            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
 18583
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18584
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18585
                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
 18586
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18587
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18588
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18589
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18590
            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
 18591
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18592
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18593
    }/*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
 18594
    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
 18595
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18596
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18597
 *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
 18598
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18599
    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
 18600
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18601
        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
 18602
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18603
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18604
            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
 18605
            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
 18606
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18607
            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
 18608
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18609
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18610
                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
 18611
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18612
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18613
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18614
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18615
            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
 18616
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18617
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18618
    }/*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
 18619
    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
 18620
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18621
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18622
 *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
 18623
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18624
    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
 18625
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18626
        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
 18627
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18628
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18629
            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
 18630
            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
 18631
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18632
            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
 18633
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18634
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18635
                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
 18636
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18637
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18638
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18639
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18640
            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
 18641
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18642
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18643
    }/*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
 18644
    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
 18645
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18646
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18647
 *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
 18648
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18649
    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
 18650
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18651
        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
 18652
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18653
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18654
            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
 18655
            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
 18656
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18657
            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
 18658
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18659
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18660
                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
 18661
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18662
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18663
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18664
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18665
            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
 18666
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18667
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18668
    }/*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
 18669
    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
 18670
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18671
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18672
 *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
 18673
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18674
    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
 18675
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18676
        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
 18677
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18678
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18679
            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
 18680
            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
 18681
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18682
            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
 18683
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18684
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18685
                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
 18686
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18687
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18688
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18689
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18690
            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
 18691
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18692
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18693
    }/*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
 18694
    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
 18695
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18696
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18697
 *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
 18698
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18699
    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
 18700
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18701
        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
 18702
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18703
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18704
            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
 18705
            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
 18706
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18707
            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
 18708
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18709
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18710
                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
 18711
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18712
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18713
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18714
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18715
            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
 18716
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18717
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18718
    }/*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
 18719
    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
 18720
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18721
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18722
 *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
 18723
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18724
    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
 18725
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18726
        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
 18727
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18728
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18729
            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
 18730
            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
 18731
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18732
            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
 18733
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18734
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18735
                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
 18736
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18737
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18738
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18739
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18740
            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
 18741
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18742
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18743
    }/*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
 18744
    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
 18745
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18746
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18747
 *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
 18748
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18749
    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
 18750
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18751
        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
 18752
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18753
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18754
            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
 18755
            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
 18756
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18757
            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
 18758
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18759
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18760
                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
 18761
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18762
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18763
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18764
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18765
            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
 18766
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18767
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18768
    }/*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
 18769
    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
 18770
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18771
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18772
 *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
 18773
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18774
    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
 18775
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18776
        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
 18777
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18778
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18779
            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
 18780
            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
 18781
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18782
            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
 18783
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18784
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18785
                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
 18786
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18787
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18788
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18789
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18790
            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
 18791
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18792
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18793
    }/*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
 18794
    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
 18795
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18796
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18797
 *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
 18798
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18799
    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
 18800
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18801
        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
 18802
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18803
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18804
            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
 18805
            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
 18806
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18807
            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
 18808
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18809
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18810
                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
 18811
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18812
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18813
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18814
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18815
            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
 18816
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18817
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18818
    }/*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
 18819
    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
 18820
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18821
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18822
 *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
 18823
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18824
    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
 18825
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18826
        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
 18827
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18828
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18829
            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
 18830
            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
 18831
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18832
            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
 18833
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18834
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18835
                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
 18836
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18837
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18838
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18839
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18840
            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
 18841
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18842
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18843
    }/*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
 18844
    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
 18845
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18846
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18847
 *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
 18848
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18849
    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
 18850
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18851
        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
 18852
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18853
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18854
            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
 18855
            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
 18856
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18857
            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
 18858
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18859
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18860
                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
 18861
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18862
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18863
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18864
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18865
            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
 18866
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18867
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18868
    }/*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
 18869
    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
 18870
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18871
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18872
 *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
 18873
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18874
    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
 18875
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18876
        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
 18877
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18878
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18879
            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
 18880
            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
 18881
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18882
            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
 18883
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18884
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18885
                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
 18886
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18887
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18888
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18889
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18890
            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
 18891
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18892
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18893
    }/*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
 18894
    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
 18895
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18896
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18897
 *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
 18898
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18899
    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
 18900
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18901
        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
 18902
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18903
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18904
            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
 18905
            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
 18906
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18907
            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
 18908
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18909
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18910
                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
 18911
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18912
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18913
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18914
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18915
            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
 18916
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18917
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18918
    }/*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
 18919
    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
 18920
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18921
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18922
 *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
 18923
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18924
    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
 18925
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18926
        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
 18927
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18928
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18929
            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
 18930
            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
 18931
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18932
            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
 18933
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18934
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18935
                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
 18936
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18937
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18938
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18939
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18940
            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
 18941
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18942
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18943
    }/*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
 18944
    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
 18945
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18946
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18947
 *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
 18948
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18949
    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
 18950
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18951
        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
 18952
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18953
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18954
            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
 18955
            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
 18956
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18957
            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
 18958
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18959
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18960
                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
 18961
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18962
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18963
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18964
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18965
            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
 18966
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18967
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18968
    }/*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
 18969
    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
 18970
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18971
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18972
 *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
 18973
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18974
    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
 18975
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18976
        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
 18977
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18978
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18979
            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
 18980
            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
 18981
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 18982
            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
 18983
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18984
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18985
                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
 18986
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18987
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18988
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18989
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18990
            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
 18991
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18992
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18993
    }/*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
 18994
    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
 18995
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18996
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18997
 *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
 18998
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 18999
    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
 19000
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19001
        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
 19002
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19003
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19004
            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
 19005
            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
 19006
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19007
            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
 19008
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19009
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19010
                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
 19011
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19012
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19013
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19014
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19015
            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
 19016
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19017
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19018
    }/*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
 19019
    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
 19020
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19021
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19022
 *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
 19023
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19024
    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
 19025
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19026
        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
 19027
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19028
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19029
            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
 19030
            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
 19031
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19032
            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
 19033
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19034
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19035
                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
 19036
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19037
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19038
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19039
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19040
            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
 19041
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19042
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19043
    }/*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
 19044
    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
 19045
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19046
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19047
 *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
 19048
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19049
    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
 19050
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19051
        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
 19052
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19053
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19054
            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
 19055
            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
 19056
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19057
            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
 19058
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19059
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19060
                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
 19061
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19062
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19063
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19064
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19065
            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
 19066
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19067
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19068
    }/*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
 19069
    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
 19070
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19071
/****
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19072
 *REAL_TO_LREAL
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19073
 */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19074
    case function_real_to_lreal :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19075
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19076
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19077
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19078
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19079
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19080
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19081
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19082
            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: 34
diff changeset
 19083
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19084
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19085
                symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19086
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19087
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19088
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19089
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19090
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19091
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19092
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19093
    }/*function_real_to_lreal*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19094
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19095
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19096
/****
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
 19097
 *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
 19098
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19099
    case function_real_to_time :
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19100
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19101
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19102
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19103
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19104
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19105
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19106
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19107
            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: 34
diff changeset
 19108
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19109
        
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
 19110
                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
 19111
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19112
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19113
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19114
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19115
            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
 19116
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19117
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19118
    }/*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
 19119
    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
 19120
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19121
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19122
 *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
 19123
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19124
    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
 19125
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19126
        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
 19127
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19128
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19129
            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
 19130
            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
 19131
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19132
            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
 19133
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19134
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19135
                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
 19136
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19137
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19138
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19139
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19140
            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
 19141
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19142
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19143
    }/*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
 19144
    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
 19145
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19146
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19147
 *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
 19148
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19149
    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
 19150
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19151
        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
 19152
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19153
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19154
            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
 19155
            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
 19156
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19157
            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
 19158
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19159
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19160
                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
 19161
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19162
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19163
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19164
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19165
            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
 19166
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19167
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19168
    }/*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
 19169
    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
 19170
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19171
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19172
 *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
 19173
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19174
    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
 19175
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19176
        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
 19177
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19178
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19179
            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
 19180
            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
 19181
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19182
            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
 19183
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19184
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19185
                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
 19186
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19187
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19188
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19189
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19190
            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
 19191
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19192
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19193
    }/*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
 19194
    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
 19195
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19196
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19197
 *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
 19198
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19199
    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
 19200
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19201
        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
 19202
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19203
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19204
            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
 19205
            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
 19206
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19207
            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
 19208
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19209
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19210
                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
 19211
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19212
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19213
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19214
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19215
            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
 19216
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19217
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19218
    }/*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
 19219
    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
 19220
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19221
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19222
 *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
 19223
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19224
    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
 19225
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19226
        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
 19227
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19228
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19229
            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
 19230
            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
 19231
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19232
            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
 19233
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19234
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19235
                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
 19236
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19237
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19238
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19239
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19240
            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
 19241
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19242
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19243
    }/*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
 19244
    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
 19245
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19246
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19247
 *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
 19248
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19249
    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
 19250
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19251
        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
 19252
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19253
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19254
            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
 19255
            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
 19256
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19257
            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
 19258
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19259
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19260
                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
 19261
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19262
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19263
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19264
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19265
            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
 19266
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19267
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19268
    }/*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
 19269
    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
 19270
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19271
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19272
 *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
 19273
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19274
    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
 19275
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19276
        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
 19277
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19278
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19279
            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
 19280
            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
 19281
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19282
            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
 19283
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19284
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19285
                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
 19286
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19287
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19288
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19289
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19290
            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
 19291
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19292
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19293
    }/*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
 19294
    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
 19295
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19296
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19297
 *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
 19298
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19299
    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
 19300
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19301
        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
 19302
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19303
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19304
            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
 19305
            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
 19306
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19307
            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
 19308
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19309
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19310
                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
 19311
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19312
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19313
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19314
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19315
            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
 19316
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19317
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19318
    }/*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
 19319
    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
 19320
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19321
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19322
 *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
 19323
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19324
    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
 19325
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19326
        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
 19327
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19328
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19329
            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
 19330
            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
 19331
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19332
            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
 19333
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19334
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19335
                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
 19336
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19337
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19338
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19339
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19340
            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
 19341
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19342
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19343
    }/*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
 19344
    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
 19345
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19346
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19347
 *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
 19348
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19349
    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
 19350
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19351
        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
 19352
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19353
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19354
            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
 19355
            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
 19356
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19357
            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
 19358
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19359
        
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19360
                symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19361
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19362
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19363
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19364
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19365
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19366
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19367
        
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
 19368
    }/*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
 19369
    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
 19370
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19371
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19372
 *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
 19373
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19374
    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
 19375
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19376
        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
 19377
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19378
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19379
            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
 19380
            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
 19381
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19382
            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: 34
diff changeset
 19383
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19384
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19385
                symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19386
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19387
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19388
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19389
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19390
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19391
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19392
        
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
 19393
    }/*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
 19394
    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
 19395
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19396
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19397
 *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
 19398
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19399
    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
 19400
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19401
        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
 19402
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19403
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19404
            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
 19405
            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
 19406
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19407
            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: 34
diff changeset
 19408
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19409
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19410
                symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19411
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19412
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19413
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19414
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19415
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19416
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19417
        
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
 19418
    }/*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
 19419
    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
 19420
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19421
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19422
 *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
 19423
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19424
    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
 19425
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19426
        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
 19427
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19428
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19429
            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
 19430
            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
 19431
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19432
            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: 34
diff changeset
 19433
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19434
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19435
                symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19436
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19437
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19438
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19439
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19440
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19441
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19442
        
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
 19443
    }/*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
 19444
    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
 19445
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19446
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19447
 *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
 19448
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19449
    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
 19450
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19451
        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
 19452
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19453
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19454
            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
 19455
            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
 19456
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19457
            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: 34
diff changeset
 19458
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19459
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19460
                symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19461
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19462
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19463
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19464
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19465
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19466
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19467
        
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
 19468
    }/*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
 19469
    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
 19470
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19471
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19472
 *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
 19473
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19474
    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
 19475
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19476
        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
 19477
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19478
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19479
            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
 19480
            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
 19481
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19482
            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: 34
diff changeset
 19483
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19484
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19485
                symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19486
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19487
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19488
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19489
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19490
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19491
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19492
        
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
 19493
    }/*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
 19494
    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
 19495
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19496
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19497
 *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
 19498
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19499
    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
 19500
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19501
        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
 19502
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19503
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19504
            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
 19505
            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
 19506
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19507
            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: 34
diff changeset
 19508
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19509
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19510
                symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19511
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19512
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19513
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19514
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19515
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19516
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19517
        
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
 19518
    }/*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
 19519
    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
 19520
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19521
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19522
 *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
 19523
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19524
    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
 19525
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19526
        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
 19527
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19528
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19529
            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
 19530
            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
 19531
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19532
            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: 34
diff changeset
 19533
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19534
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19535
                symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19536
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19537
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19538
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19539
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19540
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19541
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19542
        
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
 19543
    }/*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
 19544
    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
 19545
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19546
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19547
 *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
 19548
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19549
    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
 19550
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19551
        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
 19552
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19553
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19554
            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
 19555
            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
 19556
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19557
            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
 19558
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19559
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19560
                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
 19561
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19562
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19563
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19564
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19565
            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
 19566
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19567
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19568
    }/*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
 19569
    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
 19570
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19571
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19572
 *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
 19573
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19574
    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
 19575
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19576
        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
 19577
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19578
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19579
            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
 19580
            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
 19581
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19582
            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: 34
diff changeset
 19583
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19584
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19585
                symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19586
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19587
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19588
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19589
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19590
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19591
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 19592
        
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
 19593
    }/*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
 19594
    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
 19595
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19596
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19597
 *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
 19598
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19599
    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
 19600
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19601
        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
 19602
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19603
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19604
            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
 19605
            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
 19606
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19607
            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
 19608
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19609
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19610
                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
 19611
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19612
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19613
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19614
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19615
            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
 19616
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19617
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19618
    }/*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
 19619
    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
 19620
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19621
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19622
 *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
 19623
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19624
    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
 19625
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19626
        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
 19627
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19628
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19629
            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
 19630
            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
 19631
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19632
            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
 19633
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19634
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19635
                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
 19636
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19637
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19638
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19639
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19640
            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
 19641
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19642
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19643
    }/*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
 19644
    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
 19645
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19646
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19647
 *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
 19648
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19649
    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
 19650
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19651
        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
 19652
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19653
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19654
            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
 19655
            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
 19656
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19657
            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
 19658
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19659
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19660
                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
 19661
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19662
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19663
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19664
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19665
            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
 19666
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19667
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19668
    }/*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
 19669
    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
 19670
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19671
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19672
 *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
 19673
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19674
    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
 19675
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19676
        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
 19677
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19678
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19679
            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
 19680
            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
 19681
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19682
            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
 19683
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19684
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19685
                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
 19686
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19687
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19688
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19689
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19690
            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
 19691
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19692
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19693
    }/*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
 19694
    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
 19695
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19696
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19697
 *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
 19698
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19699
    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
 19700
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19701
        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
 19702
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19703
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19704
            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
 19705
            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
 19706
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19707
            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
 19708
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19709
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19710
                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
 19711
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19712
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19713
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19714
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19715
            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
 19716
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19717
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19718
    }/*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
 19719
    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
 19720
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19721
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19722
 *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
 19723
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19724
    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
 19725
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19726
        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
 19727
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19728
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19729
            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
 19730
            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
 19731
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19732
            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
 19733
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19734
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19735
                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
 19736
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19737
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19738
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19739
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19740
            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
 19741
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19742
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19743
    }/*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
 19744
    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
 19745
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19746
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19747
 *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
 19748
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19749
    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
 19750
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19751
        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
 19752
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19753
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19754
            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
 19755
            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
 19756
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19757
            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
 19758
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19759
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19760
                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
 19761
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19762
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19763
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19764
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19765
            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
 19766
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19767
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19768
    }/*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
 19769
    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
 19770
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19771
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19772
 *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
 19773
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19774
    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
 19775
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19776
        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
 19777
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19778
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19779
            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
 19780
            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
 19781
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19782
            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
 19783
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19784
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19785
                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
 19786
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19787
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19788
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19789
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19790
            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
 19791
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19792
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19793
    }/*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
 19794
    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
 19795
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 19796
/****
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19797
 *TIME_TO_SINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19798
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19799
    case function_time_to_sint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19800
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19801
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19802
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19803
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19804
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19805
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19806
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19807
            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: 40
diff changeset
 19808
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19809
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19810
                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: 40
diff changeset
 19811
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19812
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19813
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19814
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19815
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19816
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19817
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19818
    }/*function_time_to_sint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19819
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19820
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19821
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19822
 *TIME_TO_INT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19823
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19824
    case function_time_to_int :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19825
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19826
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19827
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19828
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19829
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19830
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19831
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19832
            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: 40
diff changeset
 19833
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19834
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19835
                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: 40
diff changeset
 19836
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19837
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19838
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19839
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19840
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19841
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19842
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19843
    }/*function_time_to_int*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19844
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19845
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19846
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19847
 *TIME_TO_DINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19848
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19849
    case function_time_to_dint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19850
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19851
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19852
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19853
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19854
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19855
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19856
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19857
            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: 40
diff changeset
 19858
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19859
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19860
                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: 40
diff changeset
 19861
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19862
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19863
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19864
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19865
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19866
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19867
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19868
    }/*function_time_to_dint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19869
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19870
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19871
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19872
 *TIME_TO_LINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19873
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19874
    case function_time_to_lint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19875
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19876
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19877
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19878
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19879
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19880
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19881
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19882
            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: 40
diff changeset
 19883
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19884
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19885
                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: 40
diff changeset
 19886
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19887
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19888
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19889
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19890
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19891
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19892
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19893
    }/*function_time_to_lint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19894
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19895
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19896
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19897
 *TIME_TO_USINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19898
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19899
    case function_time_to_usint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19900
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19901
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19902
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19903
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19904
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19905
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19906
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19907
            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: 40
diff changeset
 19908
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19909
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19910
                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: 40
diff changeset
 19911
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19912
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19913
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19914
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19915
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19916
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19917
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19918
    }/*function_time_to_usint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19919
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19920
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19921
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19922
 *TIME_TO_UINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19923
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19924
    case function_time_to_uint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19925
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19926
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19927
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19928
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19929
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19930
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19931
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19932
            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: 40
diff changeset
 19933
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19934
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19935
                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: 40
diff changeset
 19936
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19937
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19938
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19939
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19940
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19941
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19942
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19943
    }/*function_time_to_uint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19944
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19945
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19946
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19947
 *TIME_TO_UDINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19948
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19949
    case function_time_to_udint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19950
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19951
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19952
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19953
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19954
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19955
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19956
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19957
            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: 40
diff changeset
 19958
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19959
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19960
                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: 40
diff changeset
 19961
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19962
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19963
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19964
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19965
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19966
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19967
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19968
    }/*function_time_to_udint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19969
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19970
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19971
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19972
 *TIME_TO_ULINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19973
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19974
    case function_time_to_ulint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19975
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19976
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19977
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19978
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19979
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19980
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19981
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19982
            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: 40
diff changeset
 19983
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19984
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19985
                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: 40
diff changeset
 19986
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19987
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19988
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19989
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19990
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19991
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19992
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19993
    }/*function_time_to_ulint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19994
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19995
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19996
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19997
 *TIME_TO_REAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19998
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 19999
    case function_time_to_real :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20000
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20001
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20002
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20003
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20004
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20005
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20006
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20007
            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: 40
diff changeset
 20008
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20009
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20010
                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: 40
diff changeset
 20011
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20012
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20013
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20014
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20015
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20016
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20017
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20018
    }/*function_time_to_real*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20019
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20020
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20021
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20022
 *TIME_TO_LREAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20023
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20024
    case function_time_to_lreal :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20025
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20026
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20027
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20028
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20029
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20030
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20031
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20032
            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: 40
diff changeset
 20033
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20034
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20035
                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: 40
diff changeset
 20036
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20037
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20038
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20039
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20040
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20041
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20042
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20043
    }/*function_time_to_lreal*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20044
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20045
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20046
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20047
 *TIME_TO_STRING
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20048
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20049
    case function_time_to_string :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20050
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20051
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20052
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20053
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20054
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20055
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20056
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20057
            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: 40
diff changeset
 20058
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20059
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20060
                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: 40
diff changeset
 20061
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20062
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20063
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20064
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20065
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20066
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20067
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20068
    }/*function_time_to_string*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20069
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20070
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20071
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20072
 *TIME_TO_BYTE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20073
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20074
    case function_time_to_byte :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20075
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20076
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20077
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20078
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20079
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20080
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20081
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20082
            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: 40
diff changeset
 20083
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20084
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20085
                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: 40
diff changeset
 20086
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20087
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20088
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20089
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20090
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20091
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20092
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20093
    }/*function_time_to_byte*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20094
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20095
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20096
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20097
 *TIME_TO_WORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20098
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20099
    case function_time_to_word :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20100
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20101
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20102
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20103
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20104
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20105
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20106
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20107
            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: 40
diff changeset
 20108
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20109
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20110
                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: 40
diff changeset
 20111
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20112
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20113
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20114
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20115
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20116
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20117
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20118
    }/*function_time_to_word*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20119
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20120
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20121
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20122
 *TIME_TO_DWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20123
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20124
    case function_time_to_dword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20125
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20126
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20127
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20128
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20129
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20130
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20131
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20132
            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: 40
diff changeset
 20133
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20134
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20135
                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: 40
diff changeset
 20136
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20137
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20138
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20139
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20140
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20141
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20142
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20143
    }/*function_time_to_dword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20144
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20145
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20146
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20147
 *TIME_TO_LWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20148
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20149
    case function_time_to_lword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20150
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20151
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20152
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20153
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20154
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20155
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20156
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20157
            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: 40
diff changeset
 20158
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20159
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20160
                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: 40
diff changeset
 20161
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20162
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20163
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20164
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20165
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20166
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20167
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20168
    }/*function_time_to_lword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20169
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20170
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20171
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20172
 *DATE_TO_SINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20173
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20174
    case function_date_to_sint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20175
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20176
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20177
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20178
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20179
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20180
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20181
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20182
            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: 40
diff changeset
 20183
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20184
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20185
                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: 40
diff changeset
 20186
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20187
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20188
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20189
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20190
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20191
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20192
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20193
    }/*function_date_to_sint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20194
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20195
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20196
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20197
 *DATE_TO_INT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20198
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20199
    case function_date_to_int :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20200
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20201
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20202
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20203
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20204
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20205
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20206
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20207
            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: 40
diff changeset
 20208
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20209
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20210
                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: 40
diff changeset
 20211
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20212
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20213
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20214
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20215
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20216
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20217
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20218
    }/*function_date_to_int*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20219
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20220
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20221
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20222
 *DATE_TO_DINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20223
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20224
    case function_date_to_dint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20225
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20226
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20227
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20228
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20229
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20230
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20231
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20232
            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: 40
diff changeset
 20233
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20234
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20235
                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: 40
diff changeset
 20236
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20237
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20238
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20239
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20240
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20241
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20242
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20243
    }/*function_date_to_dint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20244
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20245
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20246
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20247
 *DATE_TO_LINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20248
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20249
    case function_date_to_lint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20250
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20251
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20252
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20253
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20254
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20255
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20256
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20257
            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: 40
diff changeset
 20258
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20259
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20260
                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: 40
diff changeset
 20261
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20262
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20263
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20264
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20265
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20266
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20267
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20268
    }/*function_date_to_lint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20269
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20270
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20271
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20272
 *DATE_TO_USINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20273
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20274
    case function_date_to_usint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20275
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20276
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20277
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20278
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20279
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20280
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20281
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20282
            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: 40
diff changeset
 20283
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20284
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20285
                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: 40
diff changeset
 20286
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20287
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20288
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20289
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20290
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20291
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20292
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20293
    }/*function_date_to_usint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20294
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20295
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20296
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20297
 *DATE_TO_UINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20298
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20299
    case function_date_to_uint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20300
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20301
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20302
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20303
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20304
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20305
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20306
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20307
            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: 40
diff changeset
 20308
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20309
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20310
                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: 40
diff changeset
 20311
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20312
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20313
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20314
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20315
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20316
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20317
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20318
    }/*function_date_to_uint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20319
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20320
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20321
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20322
 *DATE_TO_UDINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20323
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20324
    case function_date_to_udint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20325
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20326
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20327
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20328
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20329
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20330
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20331
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20332
            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: 40
diff changeset
 20333
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20334
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20335
                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: 40
diff changeset
 20336
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20337
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20338
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20339
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20340
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20341
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20342
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20343
    }/*function_date_to_udint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20344
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20345
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20346
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20347
 *DATE_TO_ULINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20348
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20349
    case function_date_to_ulint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20350
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20351
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20352
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20353
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20354
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20355
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20356
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20357
            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: 40
diff changeset
 20358
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20359
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20360
                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: 40
diff changeset
 20361
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20362
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20363
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20364
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20365
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20366
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20367
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20368
    }/*function_date_to_ulint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20369
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20370
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20371
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20372
 *DATE_TO_REAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20373
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20374
    case function_date_to_real :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20375
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20376
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20377
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20378
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20379
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20380
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20381
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20382
            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: 40
diff changeset
 20383
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20384
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20385
                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: 40
diff changeset
 20386
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20387
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20388
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20389
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20390
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20391
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20392
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20393
    }/*function_date_to_real*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20394
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20395
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20396
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20397
 *DATE_TO_LREAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20398
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20399
    case function_date_to_lreal :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20400
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20401
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20402
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20403
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20404
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20405
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20406
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20407
            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: 40
diff changeset
 20408
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20409
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20410
                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: 40
diff changeset
 20411
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20412
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20413
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20414
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20415
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20416
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20417
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20418
    }/*function_date_to_lreal*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20419
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20420
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20421
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20422
 *DATE_TO_STRING
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20423
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20424
    case function_date_to_string :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20425
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20426
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20427
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20428
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20429
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20430
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20431
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20432
            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: 40
diff changeset
 20433
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20434
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20435
                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: 40
diff changeset
 20436
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20437
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20438
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20439
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20440
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20441
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20442
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20443
    }/*function_date_to_string*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20444
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20445
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20446
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20447
 *DATE_TO_BYTE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20448
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20449
    case function_date_to_byte :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20450
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20451
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20452
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20453
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20454
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20455
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20456
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20457
            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: 40
diff changeset
 20458
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20459
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20460
                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: 40
diff changeset
 20461
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20462
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20463
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20464
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20465
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20466
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20467
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20468
    }/*function_date_to_byte*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20469
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20470
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20471
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20472
 *DATE_TO_WORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20473
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20474
    case function_date_to_word :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20475
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20476
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20477
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20478
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20479
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20480
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20481
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20482
            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: 40
diff changeset
 20483
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20484
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20485
                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: 40
diff changeset
 20486
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20487
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20488
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20489
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20490
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20491
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20492
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20493
    }/*function_date_to_word*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20494
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20495
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20496
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20497
 *DATE_TO_DWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20498
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20499
    case function_date_to_dword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20500
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20501
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20502
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20503
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20504
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20505
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20506
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20507
            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: 40
diff changeset
 20508
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20509
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20510
                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: 40
diff changeset
 20511
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20512
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20513
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20514
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20515
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20516
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20517
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20518
    }/*function_date_to_dword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20519
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20520
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20521
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20522
 *DATE_TO_LWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20523
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20524
    case function_date_to_lword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20525
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20526
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20527
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20528
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20529
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20530
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20531
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20532
            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: 40
diff changeset
 20533
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20534
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20535
                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: 40
diff changeset
 20536
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20537
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20538
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20539
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20540
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20541
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20542
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20543
    }/*function_date_to_lword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20544
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20545
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20546
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20547
 *TOD_TO_SINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20548
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20549
    case function_tod_to_sint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20550
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20551
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20552
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20553
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20554
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20555
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20556
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20557
            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: 40
diff changeset
 20558
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20559
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20560
                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: 40
diff changeset
 20561
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20562
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20563
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20564
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20565
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20566
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20567
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20568
    }/*function_tod_to_sint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20569
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20570
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20571
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20572
 *TOD_TO_INT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20573
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20574
    case function_tod_to_int :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20575
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20576
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20577
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20578
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20579
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20580
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20581
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20582
            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: 40
diff changeset
 20583
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20584
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20585
                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: 40
diff changeset
 20586
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20587
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20588
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20589
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20590
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20591
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20592
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20593
    }/*function_tod_to_int*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20594
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20595
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20596
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20597
 *TOD_TO_DINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20598
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20599
    case function_tod_to_dint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20600
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20601
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20602
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20603
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20604
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20605
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20606
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20607
            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: 40
diff changeset
 20608
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20609
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20610
                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: 40
diff changeset
 20611
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20612
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20613
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20614
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20615
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20616
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20617
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20618
    }/*function_tod_to_dint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20619
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20620
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20621
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20622
 *TOD_TO_LINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20623
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20624
    case function_tod_to_lint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20625
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20626
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20627
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20628
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20629
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20630
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20631
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20632
            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: 40
diff changeset
 20633
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20634
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20635
                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: 40
diff changeset
 20636
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20637
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20638
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20639
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20640
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20641
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20642
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20643
    }/*function_tod_to_lint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20644
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20645
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20646
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20647
 *TOD_TO_USINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20648
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20649
    case function_tod_to_usint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20650
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20651
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20652
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20653
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20654
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20655
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20656
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20657
            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: 40
diff changeset
 20658
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20659
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20660
                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: 40
diff changeset
 20661
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20662
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20663
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20664
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20665
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20666
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20667
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20668
    }/*function_tod_to_usint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20669
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20670
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20671
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20672
 *TOD_TO_UINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20673
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20674
    case function_tod_to_uint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20675
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20676
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20677
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20678
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20679
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20680
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20681
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20682
            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: 40
diff changeset
 20683
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20684
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20685
                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: 40
diff changeset
 20686
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20687
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20688
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20689
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20690
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20691
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20692
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20693
    }/*function_tod_to_uint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20694
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20695
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20696
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20697
 *TOD_TO_UDINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20698
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20699
    case function_tod_to_udint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20700
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20701
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20702
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20703
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20704
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20705
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20706
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20707
            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: 40
diff changeset
 20708
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20709
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20710
                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: 40
diff changeset
 20711
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20712
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20713
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20714
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20715
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20716
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20717
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20718
    }/*function_tod_to_udint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20719
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20720
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20721
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20722
 *TOD_TO_ULINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20723
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20724
    case function_tod_to_ulint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20725
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20726
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20727
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20728
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20729
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20730
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20731
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20732
            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: 40
diff changeset
 20733
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20734
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20735
                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: 40
diff changeset
 20736
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20737
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20738
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20739
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20740
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20741
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20742
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20743
    }/*function_tod_to_ulint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20744
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20745
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20746
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20747
 *TOD_TO_REAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20748
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20749
    case function_tod_to_real :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20750
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20751
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20752
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20753
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20754
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20755
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20756
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20757
            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: 40
diff changeset
 20758
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20759
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20760
                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: 40
diff changeset
 20761
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20762
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20763
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20764
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20765
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20766
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20767
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20768
    }/*function_tod_to_real*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20769
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20770
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20771
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20772
 *TOD_TO_LREAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20773
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20774
    case function_tod_to_lreal :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20775
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20776
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20777
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20778
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20779
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20780
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20781
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20782
            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: 40
diff changeset
 20783
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20784
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20785
                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: 40
diff changeset
 20786
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20787
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20788
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20789
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20790
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20791
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20792
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20793
    }/*function_tod_to_lreal*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20794
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20795
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20796
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20797
 *TOD_TO_STRING
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20798
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20799
    case function_tod_to_string :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20800
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20801
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20802
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20803
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20804
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20805
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20806
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20807
            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: 40
diff changeset
 20808
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20809
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20810
                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: 40
diff changeset
 20811
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20812
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20813
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20814
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20815
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20816
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20817
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20818
    }/*function_tod_to_string*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20819
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20820
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20821
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20822
 *TOD_TO_BYTE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20823
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20824
    case function_tod_to_byte :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20825
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20826
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20827
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20828
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20829
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20830
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20831
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20832
            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: 40
diff changeset
 20833
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20834
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20835
                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: 40
diff changeset
 20836
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20837
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20838
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20839
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20840
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20841
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20842
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20843
    }/*function_tod_to_byte*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20844
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20845
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20846
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20847
 *TOD_TO_WORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20848
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20849
    case function_tod_to_word :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20850
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20851
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20852
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20853
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20854
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20855
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20856
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20857
            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: 40
diff changeset
 20858
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20859
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20860
                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: 40
diff changeset
 20861
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20862
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20863
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20864
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20865
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20866
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20867
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20868
    }/*function_tod_to_word*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20869
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20870
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20871
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20872
 *TOD_TO_DWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20873
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20874
    case function_tod_to_dword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20875
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20876
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20877
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20878
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20879
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20880
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20881
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20882
            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: 40
diff changeset
 20883
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20884
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20885
                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: 40
diff changeset
 20886
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20887
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20888
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20889
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20890
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20891
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20892
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20893
    }/*function_tod_to_dword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20894
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20895
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20896
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20897
 *TOD_TO_LWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20898
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20899
    case function_tod_to_lword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20900
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20901
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20902
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20903
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20904
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20905
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20906
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20907
            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: 40
diff changeset
 20908
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20909
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20910
                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: 40
diff changeset
 20911
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20912
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20913
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20914
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20915
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20916
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20917
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20918
    }/*function_tod_to_lword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20919
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20920
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20921
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20922
 *DT_TO_SINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20923
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20924
    case function_dt_to_sint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20925
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20926
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20927
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20928
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20929
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20930
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20931
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20932
            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: 40
diff changeset
 20933
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20934
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20935
                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: 40
diff changeset
 20936
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20937
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20938
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20939
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20940
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20941
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20942
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20943
    }/*function_dt_to_sint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20944
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20945
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20946
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20947
 *DT_TO_INT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20948
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20949
    case function_dt_to_int :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20950
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20951
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20952
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20953
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20954
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20955
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20956
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20957
            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: 40
diff changeset
 20958
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20959
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20960
                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: 40
diff changeset
 20961
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20962
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20963
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20964
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20965
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20966
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20967
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20968
    }/*function_dt_to_int*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20969
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20970
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20971
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20972
 *DT_TO_DINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20973
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20974
    case function_dt_to_dint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20975
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20976
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20977
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20978
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20979
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20980
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20981
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20982
            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: 40
diff changeset
 20983
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20984
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20985
                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: 40
diff changeset
 20986
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20987
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20988
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20989
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20990
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20991
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20992
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20993
    }/*function_dt_to_dint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20994
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20995
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20996
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20997
 *DT_TO_LINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20998
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 20999
    case function_dt_to_lint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21000
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21001
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21002
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21003
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21004
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21005
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21006
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21007
            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: 40
diff changeset
 21008
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21009
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21010
                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: 40
diff changeset
 21011
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21012
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21013
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21014
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21015
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21016
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21017
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21018
    }/*function_dt_to_lint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21019
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21020
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21021
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21022
 *DT_TO_USINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21023
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21024
    case function_dt_to_usint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21025
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21026
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21027
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21028
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21029
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21030
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21031
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21032
            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: 40
diff changeset
 21033
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21034
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21035
                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: 40
diff changeset
 21036
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21037
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21038
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21039
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21040
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21041
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21042
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21043
    }/*function_dt_to_usint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21044
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21045
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21046
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21047
 *DT_TO_UINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21048
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21049
    case function_dt_to_uint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21050
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21051
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21052
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21053
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21054
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21055
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21056
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21057
            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: 40
diff changeset
 21058
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21059
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21060
                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: 40
diff changeset
 21061
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21062
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21063
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21064
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21065
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21066
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21067
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21068
    }/*function_dt_to_uint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21069
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21070
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21071
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21072
 *DT_TO_UDINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21073
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21074
    case function_dt_to_udint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21075
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21076
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21077
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21078
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21079
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21080
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21081
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21082
            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: 40
diff changeset
 21083
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21084
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21085
                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: 40
diff changeset
 21086
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21087
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21088
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21089
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21090
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21091
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21092
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21093
    }/*function_dt_to_udint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21094
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21095
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21096
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21097
 *DT_TO_ULINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21098
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21099
    case function_dt_to_ulint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21100
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21101
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21102
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21103
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21104
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21105
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21106
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21107
            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: 40
diff changeset
 21108
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21109
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21110
                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: 40
diff changeset
 21111
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21112
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21113
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21114
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21115
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21116
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21117
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21118
    }/*function_dt_to_ulint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21119
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21120
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21121
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21122
 *DT_TO_REAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21123
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21124
    case function_dt_to_real :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21125
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21126
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21127
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21128
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21129
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21130
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21131
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21132
            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: 40
diff changeset
 21133
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21134
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21135
                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: 40
diff changeset
 21136
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21137
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21138
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21139
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21140
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21141
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21142
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21143
    }/*function_dt_to_real*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21144
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21145
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21146
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21147
 *DT_TO_LREAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21148
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21149
    case function_dt_to_lreal :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21150
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21151
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21152
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21153
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21154
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21155
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21156
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21157
            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: 40
diff changeset
 21158
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21159
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21160
                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: 40
diff changeset
 21161
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21162
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21163
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21164
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21165
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21166
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21167
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21168
    }/*function_dt_to_lreal*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21169
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21170
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21171
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21172
 *DT_TO_STRING
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21173
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21174
    case function_dt_to_string :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21175
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21176
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21177
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21178
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21179
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21180
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21181
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21182
            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: 40
diff changeset
 21183
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21184
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21185
                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: 40
diff changeset
 21186
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21187
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21188
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21189
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21190
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21191
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21192
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21193
    }/*function_dt_to_string*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21194
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21195
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21196
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21197
 *DT_TO_BYTE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21198
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21199
    case function_dt_to_byte :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21200
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21201
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21202
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21203
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21204
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21205
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21206
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21207
            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: 40
diff changeset
 21208
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21209
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21210
                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: 40
diff changeset
 21211
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21212
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21213
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21214
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21215
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21216
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21217
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21218
    }/*function_dt_to_byte*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21219
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21220
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21221
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21222
 *DT_TO_WORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21223
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21224
    case function_dt_to_word :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21225
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21226
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21227
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21228
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21229
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21230
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21231
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21232
            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: 40
diff changeset
 21233
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21234
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21235
                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: 40
diff changeset
 21236
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21237
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21238
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21239
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21240
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21241
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21242
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21243
    }/*function_dt_to_word*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21244
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21245
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21246
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21247
 *DT_TO_DWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21248
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21249
    case function_dt_to_dword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21250
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21251
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21252
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21253
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21254
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21255
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21256
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21257
            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: 40
diff changeset
 21258
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21259
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21260
                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: 40
diff changeset
 21261
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21262
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21263
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21264
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21265
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21266
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21267
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21268
    }/*function_dt_to_dword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21269
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21270
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21271
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21272
 *DT_TO_LWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21273
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21274
    case function_dt_to_lword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21275
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21276
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21277
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21278
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21279
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21280
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21281
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21282
            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: 40
diff changeset
 21283
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21284
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21285
                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: 40
diff changeset
 21286
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21287
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21288
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21289
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21290
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21291
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21292
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21293
    }/*function_dt_to_lword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21294
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21295
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21296
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21297
 *STRING_TO_BOOL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21298
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21299
    case function_string_to_bool :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21300
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21301
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21302
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21303
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21304
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21305
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21306
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21307
            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: 34
diff changeset
 21308
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 21309
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 21310
                symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 21311
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 21312
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 21313
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 21314
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 21315
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 21316
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 21317
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21318
    }/*function_string_to_bool*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21319
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21320
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21321
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21322
 *STRING_TO_SINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21323
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21324
    case function_string_to_sint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21325
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21326
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21327
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21328
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21329
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21330
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21331
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21332
            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
 21333
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21334
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21335
                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
 21336
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21337
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21338
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21339
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21340
            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
 21341
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21342
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21343
    }/*function_string_to_sint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21344
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21345
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21346
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21347
 *STRING_TO_INT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21348
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21349
    case function_string_to_int :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21350
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21351
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21352
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21353
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21354
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21355
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21356
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21357
            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
 21358
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21359
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21360
                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
 21361
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21362
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21363
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21364
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21365
            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
 21366
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21367
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21368
    }/*function_string_to_int*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21369
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21370
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21371
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21372
 *STRING_TO_DINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21373
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21374
    case function_string_to_dint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21375
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21376
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21377
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21378
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21379
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21380
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21381
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21382
            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
 21383
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21384
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21385
                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
 21386
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21387
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21388
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21389
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21390
            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
 21391
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21392
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21393
    }/*function_string_to_dint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21394
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21395
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21396
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21397
 *STRING_TO_LINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21398
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21399
    case function_string_to_lint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21400
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21401
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21402
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21403
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21404
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21405
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21406
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21407
            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
 21408
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21409
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21410
                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
 21411
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21412
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21413
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21414
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21415
            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
 21416
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21417
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21418
    }/*function_string_to_lint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21419
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21420
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21421
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21422
 *STRING_TO_USINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21423
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21424
    case function_string_to_usint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21425
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21426
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21427
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21428
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21429
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21430
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21431
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21432
            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
 21433
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21434
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21435
                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
 21436
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21437
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21438
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21439
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21440
            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
 21441
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21442
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21443
    }/*function_string_to_usint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21444
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21445
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21446
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21447
 *STRING_TO_UINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21448
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21449
    case function_string_to_uint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21450
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21451
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21452
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21453
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21454
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21455
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21456
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21457
            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
 21458
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21459
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21460
                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
 21461
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21462
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21463
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21464
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21465
            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
 21466
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21467
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21468
    }/*function_string_to_uint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21469
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21470
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21471
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21472
 *STRING_TO_UDINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21473
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21474
    case function_string_to_udint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21475
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21476
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21477
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21478
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21479
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21480
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21481
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21482
            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
 21483
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21484
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21485
                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
 21486
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21487
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21488
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21489
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21490
            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
 21491
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21492
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21493
    }/*function_string_to_udint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21494
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21495
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21496
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21497
 *STRING_TO_ULINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21498
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21499
    case function_string_to_ulint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21500
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21501
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21502
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21503
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21504
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21505
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21506
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21507
            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
 21508
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21509
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21510
                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
 21511
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21512
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21513
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21514
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21515
            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
 21516
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21517
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21518
    }/*function_string_to_ulint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21519
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21520
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21521
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21522
 *STRING_TO_REAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21523
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21524
    case function_string_to_real :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21525
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21526
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21527
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21528
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21529
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21530
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21531
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21532
            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
 21533
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21534
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21535
                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
 21536
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21537
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21538
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21539
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21540
            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
 21541
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21542
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21543
    }/*function_string_to_real*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21544
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21545
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21546
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21547
 *STRING_TO_LREAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21548
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21549
    case function_string_to_lreal :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21550
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21551
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21552
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21553
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21554
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21555
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21556
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21557
            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
 21558
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21559
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21560
                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
 21561
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21562
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21563
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21564
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21565
            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
 21566
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 21567
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21568
    }/*function_string_to_lreal*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21569
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21570
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21571
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21572
 *STRING_TO_TIME
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21573
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21574
    case function_string_to_time :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21575
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21576
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21577
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21578
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21579
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21580
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21581
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21582
            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: 40
diff changeset
 21583
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21584
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21585
                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: 40
diff changeset
 21586
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21587
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21588
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21589
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21590
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21591
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21592
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21593
    }/*function_string_to_time*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21594
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21595
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21596
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21597
 *STRING_TO_DATE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21598
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21599
    case function_string_to_date :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21600
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21601
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21602
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21603
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21604
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21605
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21606
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21607
            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: 40
diff changeset
 21608
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21609
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21610
                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: 40
diff changeset
 21611
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21612
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21613
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21614
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21615
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21616
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21617
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21618
    }/*function_string_to_date*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21619
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21620
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21621
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21622
 *STRING_TO_TOD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21623
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21624
    case function_string_to_tod :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21625
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21626
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21627
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21628
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21629
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21630
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21631
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21632
            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: 40
diff changeset
 21633
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21634
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21635
                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: 40
diff changeset
 21636
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21637
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21638
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21639
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21640
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21641
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21642
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21643
    }/*function_string_to_tod*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21644
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21645
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21646
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21647
 *STRING_TO_DT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21648
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21649
    case function_string_to_dt :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21650
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21651
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21652
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21653
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21654
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21655
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21656
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21657
            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: 40
diff changeset
 21658
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21659
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21660
                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: 40
diff changeset
 21661
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21662
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21663
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21664
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21665
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21666
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21667
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21668
    }/*function_string_to_dt*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21669
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21670
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21671
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21672
 *STRING_TO_BYTE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21673
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21674
    case function_string_to_byte :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21675
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21676
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21677
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21678
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21679
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21680
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21681
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21682
            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: 40
diff changeset
 21683
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21684
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21685
                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: 40
diff changeset
 21686
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21687
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21688
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21689
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21690
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21691
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21692
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21693
    }/*function_string_to_byte*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21694
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21695
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21696
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21697
 *STRING_TO_WORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21698
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21699
    case function_string_to_word :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21700
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21701
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21702
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21703
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21704
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21705
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21706
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21707
            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: 40
diff changeset
 21708
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21709
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21710
                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: 40
diff changeset
 21711
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21712
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21713
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21714
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21715
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21716
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21717
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21718
    }/*function_string_to_word*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21719
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21720
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21721
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21722
 *STRING_TO_DWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21723
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21724
    case function_string_to_dword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21725
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21726
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21727
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21728
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21729
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21730
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21731
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21732
            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: 40
diff changeset
 21733
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21734
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21735
                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: 40
diff changeset
 21736
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21737
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21738
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21739
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21740
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21741
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21742
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21743
    }/*function_string_to_dword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21744
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21745
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21746
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21747
 *STRING_TO_LWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21748
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21749
    case function_string_to_lword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21750
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21751
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21752
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21753
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21754
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21755
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21756
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21757
            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: 40
diff changeset
 21758
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21759
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21760
                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: 40
diff changeset
 21761
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21762
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21763
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21764
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21765
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21766
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21767
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21768
    }/*function_string_to_lword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21769
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21770
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21771
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21772
 *BYTE_TO_BOOL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21773
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21774
    case function_byte_to_bool :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21775
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21776
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21777
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21778
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21779
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21780
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21781
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21782
            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: 40
diff changeset
 21783
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21784
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21785
                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: 40
diff changeset
 21786
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21787
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21788
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21789
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21790
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21791
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21792
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21793
    }/*function_byte_to_bool*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21794
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21795
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21796
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21797
 *BYTE_TO_SINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21798
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21799
    case function_byte_to_sint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21800
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21801
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21802
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21803
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21804
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21805
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21806
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21807
            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: 40
diff changeset
 21808
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21809
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21810
                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: 40
diff changeset
 21811
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21812
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21813
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21814
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21815
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21816
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21817
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21818
    }/*function_byte_to_sint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21819
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21820
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21821
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21822
 *BYTE_TO_INT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21823
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21824
    case function_byte_to_int :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21825
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21826
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21827
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21828
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21829
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21830
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21831
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21832
            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: 40
diff changeset
 21833
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21834
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21835
                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: 40
diff changeset
 21836
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21837
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21838
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21839
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21840
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21841
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21842
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21843
    }/*function_byte_to_int*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21844
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21845
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21846
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21847
 *BYTE_TO_DINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21848
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21849
    case function_byte_to_dint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21850
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21851
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21852
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21853
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21854
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21855
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21856
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21857
            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: 40
diff changeset
 21858
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21859
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21860
                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: 40
diff changeset
 21861
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21862
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21863
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21864
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21865
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21866
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21867
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21868
    }/*function_byte_to_dint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21869
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21870
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21871
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21872
 *BYTE_TO_LINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21873
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21874
    case function_byte_to_lint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21875
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21876
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21877
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21878
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21879
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21880
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21881
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21882
            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: 40
diff changeset
 21883
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21884
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21885
                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: 40
diff changeset
 21886
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21887
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21888
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21889
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21890
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21891
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21892
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21893
    }/*function_byte_to_lint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21894
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21895
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21896
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21897
 *BYTE_TO_USINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21898
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21899
    case function_byte_to_usint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21900
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21901
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21902
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21903
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21904
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21905
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21906
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21907
            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: 40
diff changeset
 21908
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21909
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21910
                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: 40
diff changeset
 21911
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21912
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21913
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21914
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21915
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21916
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21917
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21918
    }/*function_byte_to_usint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21919
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21920
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21921
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21922
 *BYTE_TO_UINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21923
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21924
    case function_byte_to_uint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21925
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21926
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21927
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21928
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21929
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21930
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21931
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21932
            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: 40
diff changeset
 21933
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21934
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21935
                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: 40
diff changeset
 21936
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21937
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21938
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21939
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21940
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21941
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21942
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21943
    }/*function_byte_to_uint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21944
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21945
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21946
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21947
 *BYTE_TO_UDINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21948
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21949
    case function_byte_to_udint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21950
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21951
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21952
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21953
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21954
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21955
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21956
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21957
            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: 40
diff changeset
 21958
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21959
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21960
                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: 40
diff changeset
 21961
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21962
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21963
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21964
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21965
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21966
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21967
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21968
    }/*function_byte_to_udint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21969
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21970
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21971
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21972
 *BYTE_TO_ULINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21973
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21974
    case function_byte_to_ulint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21975
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21976
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21977
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21978
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21979
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21980
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21981
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21982
            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: 40
diff changeset
 21983
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21984
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21985
                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: 40
diff changeset
 21986
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21987
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21988
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21989
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21990
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21991
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21992
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21993
    }/*function_byte_to_ulint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21994
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21995
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21996
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21997
 *BYTE_TO_REAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21998
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 21999
    case function_byte_to_real :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22000
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22001
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22002
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22003
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22004
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22005
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22006
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22007
            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: 40
diff changeset
 22008
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22009
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22010
                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: 40
diff changeset
 22011
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22012
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22013
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22014
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22015
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22016
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22017
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22018
    }/*function_byte_to_real*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22019
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22020
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22021
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22022
 *BYTE_TO_LREAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22023
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22024
    case function_byte_to_lreal :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22025
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22026
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22027
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22028
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22029
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22030
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22031
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22032
            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: 40
diff changeset
 22033
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22034
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22035
                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: 40
diff changeset
 22036
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22037
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22038
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22039
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22040
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22041
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22042
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22043
    }/*function_byte_to_lreal*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22044
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22045
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22046
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22047
 *BYTE_TO_TIME
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22048
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22049
    case function_byte_to_time :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22050
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22051
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22052
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22053
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22054
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22055
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22056
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22057
            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: 40
diff changeset
 22058
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22059
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22060
                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: 40
diff changeset
 22061
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22062
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22063
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22064
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22065
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22066
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22067
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22068
    }/*function_byte_to_time*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22069
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22070
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22071
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22072
 *BYTE_TO_DATE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22073
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22074
    case function_byte_to_date :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22075
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22076
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22077
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22078
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22079
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22080
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22081
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22082
            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: 40
diff changeset
 22083
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22084
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22085
                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: 40
diff changeset
 22086
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22087
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22088
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22089
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22090
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22091
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22092
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22093
    }/*function_byte_to_date*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22094
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22095
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22096
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22097
 *BYTE_TO_TOD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22098
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22099
    case function_byte_to_tod :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22100
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22101
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22102
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22103
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22104
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22105
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22106
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22107
            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: 40
diff changeset
 22108
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22109
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22110
                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: 40
diff changeset
 22111
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22112
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22113
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22114
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22115
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22116
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22117
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22118
    }/*function_byte_to_tod*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22119
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22120
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22121
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22122
 *BYTE_TO_DT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22123
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22124
    case function_byte_to_dt :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22125
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22126
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22127
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22128
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22129
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22130
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22131
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22132
            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: 40
diff changeset
 22133
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22134
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22135
                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: 40
diff changeset
 22136
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22137
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22138
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22139
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22140
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22141
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22142
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22143
    }/*function_byte_to_dt*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22144
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22145
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22146
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22147
 *BYTE_TO_STRING
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22148
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22149
    case function_byte_to_string :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22150
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22151
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22152
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22153
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22154
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22155
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22156
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22157
            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
 22158
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 22159
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 22160
                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
 22161
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 22162
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 22163
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 22164
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 22165
            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
 22166
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 22167
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22168
    }/*function_byte_to_string*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22169
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22170
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22171
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22172
 *BYTE_TO_WORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22173
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22174
    case function_byte_to_word :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22175
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22176
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22177
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22178
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22179
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22180
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22181
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22182
            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: 40
diff changeset
 22183
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22184
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22185
                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: 40
diff changeset
 22186
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22187
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22188
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22189
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22190
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22191
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22192
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22193
    }/*function_byte_to_word*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22194
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22195
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22196
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22197
 *BYTE_TO_DWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22198
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22199
    case function_byte_to_dword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22200
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22201
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22202
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22203
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22204
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22205
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22206
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22207
            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: 40
diff changeset
 22208
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22209
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22210
                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: 40
diff changeset
 22211
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22212
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22213
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22214
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22215
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22216
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22217
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22218
    }/*function_byte_to_dword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22219
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22220
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22221
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22222
 *BYTE_TO_LWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22223
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22224
    case function_byte_to_lword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22225
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22226
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22227
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22228
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22229
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22230
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22231
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22232
            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: 40
diff changeset
 22233
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22234
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22235
                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: 40
diff changeset
 22236
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22237
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22238
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22239
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22240
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22241
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22242
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22243
    }/*function_byte_to_lword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22244
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22245
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22246
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22247
 *WORD_TO_BOOL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22248
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22249
    case function_word_to_bool :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22250
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22251
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22252
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22253
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22254
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22255
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22256
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22257
            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: 40
diff changeset
 22258
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22259
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22260
                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: 40
diff changeset
 22261
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22262
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22263
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22264
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22265
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22266
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22267
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22268
    }/*function_word_to_bool*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22269
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22270
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22271
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22272
 *WORD_TO_SINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22273
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22274
    case function_word_to_sint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22275
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22276
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22277
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22278
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22279
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22280
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22281
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22282
            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: 40
diff changeset
 22283
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22284
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22285
                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: 40
diff changeset
 22286
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22287
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22288
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22289
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22290
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22291
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22292
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22293
    }/*function_word_to_sint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22294
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22295
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22296
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22297
 *WORD_TO_INT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22298
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22299
    case function_word_to_int :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22300
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22301
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22302
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22303
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22304
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22305
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22306
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22307
            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: 40
diff changeset
 22308
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22309
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22310
                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: 40
diff changeset
 22311
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22312
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22313
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22314
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22315
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22316
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22317
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22318
    }/*function_word_to_int*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22319
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22320
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22321
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22322
 *WORD_TO_DINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22323
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22324
    case function_word_to_dint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22325
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22326
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22327
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22328
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22329
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22330
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22331
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22332
            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: 40
diff changeset
 22333
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22334
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22335
                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: 40
diff changeset
 22336
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22337
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22338
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22339
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22340
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22341
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22342
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22343
    }/*function_word_to_dint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22344
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22345
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22346
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22347
 *WORD_TO_LINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22348
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22349
    case function_word_to_lint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22350
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22351
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22352
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22353
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22354
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22355
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22356
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22357
            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: 40
diff changeset
 22358
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22359
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22360
                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: 40
diff changeset
 22361
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22362
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22363
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22364
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22365
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22366
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22367
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22368
    }/*function_word_to_lint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22369
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22370
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22371
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22372
 *WORD_TO_USINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22373
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22374
    case function_word_to_usint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22375
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22376
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22377
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22378
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22379
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22380
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22381
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22382
            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: 40
diff changeset
 22383
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22384
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22385
                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: 40
diff changeset
 22386
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22387
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22388
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22389
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22390
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22391
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22392
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22393
    }/*function_word_to_usint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22394
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22395
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22396
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22397
 *WORD_TO_UINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22398
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22399
    case function_word_to_uint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22400
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22401
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22402
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22403
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22404
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22405
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22406
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22407
            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: 40
diff changeset
 22408
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22409
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22410
                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: 40
diff changeset
 22411
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22412
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22413
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22414
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22415
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22416
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22417
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22418
    }/*function_word_to_uint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22419
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22420
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22421
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22422
 *WORD_TO_UDINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22423
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22424
    case function_word_to_udint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22425
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22426
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22427
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22428
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22429
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22430
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22431
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22432
            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: 40
diff changeset
 22433
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22434
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22435
                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: 40
diff changeset
 22436
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22437
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22438
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22439
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22440
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22441
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22442
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22443
    }/*function_word_to_udint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22444
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22445
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22446
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22447
 *WORD_TO_ULINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22448
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22449
    case function_word_to_ulint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22450
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22451
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22452
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22453
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22454
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22455
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22456
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22457
            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: 40
diff changeset
 22458
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22459
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22460
                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: 40
diff changeset
 22461
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22462
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22463
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22464
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22465
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22466
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22467
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22468
    }/*function_word_to_ulint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22469
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22470
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22471
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22472
 *WORD_TO_REAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22473
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22474
    case function_word_to_real :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22475
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22476
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22477
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22478
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22479
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22480
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22481
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22482
            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: 40
diff changeset
 22483
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22484
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22485
                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: 40
diff changeset
 22486
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22487
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22488
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22489
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22490
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22491
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22492
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22493
    }/*function_word_to_real*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22494
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22495
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22496
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22497
 *WORD_TO_LREAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22498
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22499
    case function_word_to_lreal :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22500
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22501
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22502
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22503
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22504
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22505
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22506
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22507
            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: 40
diff changeset
 22508
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22509
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22510
                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: 40
diff changeset
 22511
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22512
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22513
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22514
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22515
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22516
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22517
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22518
    }/*function_word_to_lreal*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22519
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22520
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22521
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22522
 *WORD_TO_TIME
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22523
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22524
    case function_word_to_time :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22525
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22526
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22527
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22528
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22529
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22530
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22531
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22532
            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: 40
diff changeset
 22533
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22534
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22535
                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: 40
diff changeset
 22536
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22537
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22538
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22539
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22540
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22541
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22542
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22543
    }/*function_word_to_time*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22544
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22545
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22546
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22547
 *WORD_TO_DATE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22548
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22549
    case function_word_to_date :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22550
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22551
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22552
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22553
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22554
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22555
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22556
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22557
            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: 40
diff changeset
 22558
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22559
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22560
                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: 40
diff changeset
 22561
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22562
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22563
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22564
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22565
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22566
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22567
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22568
    }/*function_word_to_date*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22569
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22570
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22571
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22572
 *WORD_TO_TOD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22573
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22574
    case function_word_to_tod :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22575
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22576
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22577
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22578
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22579
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22580
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22581
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22582
            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: 40
diff changeset
 22583
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22584
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22585
                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: 40
diff changeset
 22586
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22587
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22588
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22589
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22590
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22591
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22592
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22593
    }/*function_word_to_tod*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22594
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22595
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22596
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22597
 *WORD_TO_DT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22598
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22599
    case function_word_to_dt :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22600
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22601
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22602
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22603
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22604
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22605
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22606
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22607
            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: 40
diff changeset
 22608
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22609
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22610
                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: 40
diff changeset
 22611
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22612
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22613
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22614
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22615
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22616
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22617
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22618
    }/*function_word_to_dt*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22619
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22620
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22621
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22622
 *WORD_TO_STRING
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22623
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22624
    case function_word_to_string :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22625
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22626
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22627
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22628
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22629
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22630
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22631
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22632
            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: 40
diff changeset
 22633
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22634
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22635
                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: 40
diff changeset
 22636
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22637
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22638
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22639
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22640
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22641
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22642
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22643
    }/*function_word_to_string*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22644
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22645
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22646
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22647
 *WORD_TO_BYTE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22648
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22649
    case function_word_to_byte :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22650
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22651
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22652
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22653
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22654
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22655
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22656
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22657
            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: 34
diff changeset
 22658
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 22659
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 22660
                symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 22661
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 22662
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 22663
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 22664
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 22665
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 22666
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 22667
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22668
    }/*function_word_to_byte*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22669
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22670
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22671
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22672
 *WORD_TO_DWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22673
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22674
    case function_word_to_dword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22675
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22676
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22677
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22678
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22679
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22680
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22681
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22682
            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: 40
diff changeset
 22683
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22684
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22685
                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: 40
diff changeset
 22686
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22687
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22688
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22689
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22690
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22691
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22692
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22693
    }/*function_word_to_dword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22694
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22695
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22696
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22697
 *WORD_TO_LWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22698
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22699
    case function_word_to_lword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22700
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22701
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22702
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22703
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22704
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22705
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22706
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22707
            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: 40
diff changeset
 22708
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22709
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22710
                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: 40
diff changeset
 22711
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22712
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22713
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22714
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22715
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22716
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22717
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22718
    }/*function_word_to_lword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22719
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22720
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22721
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22722
 *DWORD_TO_BOOL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22723
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22724
    case function_dword_to_bool :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22725
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22726
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22727
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22728
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22729
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22730
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22731
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22732
            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: 40
diff changeset
 22733
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22734
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22735
                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: 40
diff changeset
 22736
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22737
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22738
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22739
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22740
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22741
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22742
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22743
    }/*function_dword_to_bool*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22744
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22745
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22746
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22747
 *DWORD_TO_SINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22748
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22749
    case function_dword_to_sint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22750
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22751
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22752
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22753
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22754
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22755
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22756
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22757
            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: 40
diff changeset
 22758
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22759
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22760
                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: 40
diff changeset
 22761
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22762
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22763
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22764
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22765
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22766
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22767
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22768
    }/*function_dword_to_sint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22769
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22770
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22771
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22772
 *DWORD_TO_INT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22773
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22774
    case function_dword_to_int :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22775
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22776
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22777
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22778
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22779
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22780
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22781
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22782
            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: 40
diff changeset
 22783
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22784
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22785
                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: 40
diff changeset
 22786
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22787
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22788
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22789
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22790
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22791
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22792
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22793
    }/*function_dword_to_int*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22794
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22795
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22796
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22797
 *DWORD_TO_DINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22798
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22799
    case function_dword_to_dint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22800
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22801
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22802
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22803
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22804
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22805
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22806
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22807
            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: 40
diff changeset
 22808
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22809
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22810
                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: 40
diff changeset
 22811
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22812
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22813
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22814
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22815
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22816
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22817
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22818
    }/*function_dword_to_dint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22819
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22820
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22821
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22822
 *DWORD_TO_LINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22823
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22824
    case function_dword_to_lint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22825
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22826
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22827
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22828
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22829
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22830
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22831
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22832
            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: 40
diff changeset
 22833
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22834
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22835
                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: 40
diff changeset
 22836
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22837
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22838
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22839
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22840
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22841
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22842
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22843
    }/*function_dword_to_lint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22844
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22845
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22846
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22847
 *DWORD_TO_USINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22848
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22849
    case function_dword_to_usint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22850
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22851
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22852
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22853
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22854
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22855
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22856
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22857
            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: 40
diff changeset
 22858
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22859
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22860
                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: 40
diff changeset
 22861
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22862
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22863
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22864
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22865
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22866
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22867
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22868
    }/*function_dword_to_usint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22869
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22870
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22871
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22872
 *DWORD_TO_UINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22873
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22874
    case function_dword_to_uint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22875
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22876
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22877
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22878
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22879
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22880
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22881
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22882
            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: 40
diff changeset
 22883
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22884
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22885
                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: 40
diff changeset
 22886
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22887
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22888
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22889
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22890
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22891
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22892
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22893
    }/*function_dword_to_uint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22894
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22895
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22896
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22897
 *DWORD_TO_UDINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22898
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22899
    case function_dword_to_udint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22900
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22901
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22902
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22903
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22904
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22905
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22906
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22907
            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: 40
diff changeset
 22908
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22909
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22910
                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: 40
diff changeset
 22911
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22912
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22913
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22914
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22915
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22916
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22917
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22918
    }/*function_dword_to_udint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22919
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22920
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22921
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22922
 *DWORD_TO_ULINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22923
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22924
    case function_dword_to_ulint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22925
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22926
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22927
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22928
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22929
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22930
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22931
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22932
            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: 40
diff changeset
 22933
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22934
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22935
                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: 40
diff changeset
 22936
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22937
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22938
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22939
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22940
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22941
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22942
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22943
    }/*function_dword_to_ulint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22944
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22945
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22946
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22947
 *DWORD_TO_REAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22948
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22949
    case function_dword_to_real :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22950
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22951
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22952
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22953
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22954
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22955
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22956
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22957
            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: 40
diff changeset
 22958
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22959
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22960
                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: 40
diff changeset
 22961
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22962
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22963
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22964
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22965
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22966
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22967
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22968
    }/*function_dword_to_real*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22969
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22970
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22971
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22972
 *DWORD_TO_LREAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22973
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22974
    case function_dword_to_lreal :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22975
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22976
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22977
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22978
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22979
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22980
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22981
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22982
            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: 40
diff changeset
 22983
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22984
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22985
                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: 40
diff changeset
 22986
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22987
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22988
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22989
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22990
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22991
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22992
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22993
    }/*function_dword_to_lreal*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22994
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22995
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22996
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22997
 *DWORD_TO_TIME
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22998
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 22999
    case function_dword_to_time :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23000
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23001
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23002
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23003
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23004
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23005
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23006
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23007
            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: 40
diff changeset
 23008
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23009
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23010
                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: 40
diff changeset
 23011
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23012
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23013
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23014
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23015
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23016
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23017
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23018
    }/*function_dword_to_time*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23019
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23020
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23021
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23022
 *DWORD_TO_DATE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23023
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23024
    case function_dword_to_date :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23025
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23026
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23027
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23028
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23029
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23030
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23031
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23032
            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: 40
diff changeset
 23033
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23034
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23035
                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: 40
diff changeset
 23036
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23037
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23038
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23039
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23040
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23041
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23042
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23043
    }/*function_dword_to_date*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23044
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23045
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23046
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23047
 *DWORD_TO_TOD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23048
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23049
    case function_dword_to_tod :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23050
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23051
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23052
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23053
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23054
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23055
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23056
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23057
            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: 40
diff changeset
 23058
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23059
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23060
                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: 40
diff changeset
 23061
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23062
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23063
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23064
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23065
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23066
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23067
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23068
    }/*function_dword_to_tod*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23069
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23070
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23071
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23072
 *DWORD_TO_DT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23073
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23074
    case function_dword_to_dt :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23075
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23076
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23077
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23078
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23079
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23080
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23081
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23082
            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: 40
diff changeset
 23083
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23084
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23085
                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: 40
diff changeset
 23086
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23087
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23088
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23089
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23090
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23091
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23092
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23093
    }/*function_dword_to_dt*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23094
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23095
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23096
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23097
 *DWORD_TO_STRING
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23098
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23099
    case function_dword_to_string :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23100
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23101
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23102
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23103
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23104
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23105
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23106
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23107
            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: 40
diff changeset
 23108
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23109
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23110
                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: 40
diff changeset
 23111
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23112
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23113
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23114
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23115
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23116
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23117
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23118
    }/*function_dword_to_string*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23119
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23120
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23121
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23122
 *DWORD_TO_BYTE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23123
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23124
    case function_dword_to_byte :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23125
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23126
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23127
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23128
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23129
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23130
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23131
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23132
            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: 40
diff changeset
 23133
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23134
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23135
                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: 40
diff changeset
 23136
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23137
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23138
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23139
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23140
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23141
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23142
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23143
    }/*function_dword_to_byte*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23144
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23145
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23146
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23147
 *DWORD_TO_WORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23148
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23149
    case function_dword_to_word :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23150
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23151
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23152
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23153
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23154
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23155
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23156
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23157
            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: 34
diff changeset
 23158
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23159
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23160
                symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23161
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23162
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23163
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23164
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23165
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23166
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23167
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23168
    }/*function_dword_to_word*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23169
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23170
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23171
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23172
 *DWORD_TO_LWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23173
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23174
    case function_dword_to_lword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23175
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23176
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23177
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23178
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23179
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23180
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23181
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23182
            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: 40
diff changeset
 23183
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23184
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23185
                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: 40
diff changeset
 23186
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23187
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23188
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23189
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23190
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23191
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23192
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23193
    }/*function_dword_to_lword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23194
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23195
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23196
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23197
 *LWORD_TO_BOOL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23198
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23199
    case function_lword_to_bool :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23200
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23201
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23202
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23203
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23204
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23205
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23206
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23207
            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: 40
diff changeset
 23208
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23209
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23210
                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: 40
diff changeset
 23211
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23212
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23213
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23214
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23215
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23216
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23217
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23218
    }/*function_lword_to_bool*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23219
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23220
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23221
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23222
 *LWORD_TO_SINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23223
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23224
    case function_lword_to_sint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23225
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23226
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23227
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23228
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23229
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23230
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23231
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23232
            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: 40
diff changeset
 23233
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23234
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23235
                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: 40
diff changeset
 23236
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23237
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23238
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23239
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23240
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23241
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23242
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23243
    }/*function_lword_to_sint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23244
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23245
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23246
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23247
 *LWORD_TO_INT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23248
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23249
    case function_lword_to_int :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23250
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23251
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23252
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23253
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23254
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23255
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23256
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23257
            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: 40
diff changeset
 23258
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23259
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23260
                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: 40
diff changeset
 23261
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23262
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23263
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23264
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23265
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23266
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23267
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23268
    }/*function_lword_to_int*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23269
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23270
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23271
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23272
 *LWORD_TO_DINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23273
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23274
    case function_lword_to_dint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23275
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23276
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23277
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23278
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23279
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23280
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23281
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23282
            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: 40
diff changeset
 23283
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23284
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23285
                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: 40
diff changeset
 23286
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23287
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23288
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23289
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23290
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23291
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23292
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23293
    }/*function_lword_to_dint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23294
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23295
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23296
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23297
 *LWORD_TO_LINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23298
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23299
    case function_lword_to_lint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23300
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23301
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23302
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23303
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23304
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23305
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23306
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23307
            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: 40
diff changeset
 23308
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23309
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23310
                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: 40
diff changeset
 23311
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23312
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23313
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23314
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23315
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23316
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23317
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23318
    }/*function_lword_to_lint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23319
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23320
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23321
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23322
 *LWORD_TO_USINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23323
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23324
    case function_lword_to_usint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23325
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23326
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23327
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23328
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23329
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23330
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23331
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23332
            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: 40
diff changeset
 23333
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23334
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23335
                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: 40
diff changeset
 23336
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23337
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23338
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23339
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23340
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23341
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23342
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23343
    }/*function_lword_to_usint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23344
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23345
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23346
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23347
 *LWORD_TO_UINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23348
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23349
    case function_lword_to_uint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23350
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23351
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23352
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23353
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23354
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23355
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23356
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23357
            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: 40
diff changeset
 23358
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23359
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23360
                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: 40
diff changeset
 23361
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23362
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23363
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23364
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23365
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23366
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23367
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23368
    }/*function_lword_to_uint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23369
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23370
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23371
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23372
 *LWORD_TO_UDINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23373
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23374
    case function_lword_to_udint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23375
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23376
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23377
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23378
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23379
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23380
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23381
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23382
            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: 40
diff changeset
 23383
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23384
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23385
                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: 40
diff changeset
 23386
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23387
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23388
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23389
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23390
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23391
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23392
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23393
    }/*function_lword_to_udint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23394
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23395
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23396
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23397
 *LWORD_TO_ULINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23398
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23399
    case function_lword_to_ulint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23400
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23401
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23402
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23403
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23404
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23405
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23406
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23407
            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: 40
diff changeset
 23408
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23409
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23410
                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: 40
diff changeset
 23411
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23412
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23413
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23414
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23415
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23416
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23417
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23418
    }/*function_lword_to_ulint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23419
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23420
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23421
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23422
 *LWORD_TO_REAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23423
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23424
    case function_lword_to_real :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23425
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23426
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23427
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23428
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23429
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23430
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23431
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23432
            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: 40
diff changeset
 23433
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23434
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23435
                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: 40
diff changeset
 23436
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23437
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23438
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23439
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23440
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23441
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23442
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23443
    }/*function_lword_to_real*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23444
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23445
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23446
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23447
 *LWORD_TO_LREAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23448
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23449
    case function_lword_to_lreal :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23450
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23451
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23452
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23453
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23454
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23455
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23456
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23457
            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: 40
diff changeset
 23458
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23459
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23460
                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: 40
diff changeset
 23461
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23462
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23463
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23464
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23465
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23466
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23467
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23468
    }/*function_lword_to_lreal*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23469
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23470
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23471
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23472
 *LWORD_TO_TIME
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23473
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23474
    case function_lword_to_time :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23475
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23476
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23477
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23478
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23479
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23480
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23481
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23482
            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: 40
diff changeset
 23483
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23484
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23485
                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: 40
diff changeset
 23486
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23487
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23488
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23489
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23490
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23491
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23492
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23493
    }/*function_lword_to_time*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23494
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23495
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23496
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23497
 *LWORD_TO_DATE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23498
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23499
    case function_lword_to_date :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23500
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23501
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23502
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23503
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23504
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23505
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23506
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23507
            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: 40
diff changeset
 23508
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23509
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23510
                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: 40
diff changeset
 23511
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23512
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23513
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23514
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23515
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23516
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23517
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23518
    }/*function_lword_to_date*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23519
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23520
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23521
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23522
 *LWORD_TO_TOD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23523
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23524
    case function_lword_to_tod :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23525
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23526
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23527
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23528
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23529
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23530
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23531
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23532
            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: 40
diff changeset
 23533
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23534
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23535
                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: 40
diff changeset
 23536
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23537
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23538
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23539
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23540
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23541
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23542
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23543
    }/*function_lword_to_tod*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23544
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23545
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23546
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23547
 *LWORD_TO_DT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23548
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23549
    case function_lword_to_dt :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23550
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23551
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23552
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23553
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23554
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23555
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23556
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23557
            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: 40
diff changeset
 23558
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23559
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23560
                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: 40
diff changeset
 23561
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23562
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23563
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23564
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23565
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23566
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23567
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23568
    }/*function_lword_to_dt*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23569
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23570
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23571
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23572
 *LWORD_TO_STRING
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23573
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23574
    case function_lword_to_string :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23575
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23576
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23577
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23578
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23579
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23580
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23581
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23582
            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: 40
diff changeset
 23583
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23584
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23585
                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: 40
diff changeset
 23586
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23587
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23588
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23589
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23590
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23591
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23592
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23593
    }/*function_lword_to_string*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23594
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23595
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23596
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23597
 *LWORD_TO_BYTE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23598
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23599
    case function_lword_to_byte :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23600
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23601
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23602
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23603
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23604
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23605
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23606
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23607
            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: 40
diff changeset
 23608
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23609
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23610
                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: 40
diff changeset
 23611
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23612
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23613
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23614
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23615
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23616
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23617
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23618
    }/*function_lword_to_byte*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23619
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23620
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23621
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23622
 *LWORD_TO_WORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23623
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23624
    case function_lword_to_word :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23625
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23626
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23627
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23628
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23629
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23630
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23631
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23632
            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: 40
diff changeset
 23633
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23634
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23635
                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: 40
diff changeset
 23636
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23637
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23638
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23639
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23640
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23641
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23642
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23643
    }/*function_lword_to_word*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23644
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23645
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23646
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23647
 *LWORD_TO_DWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23648
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23649
    case function_lword_to_dword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23650
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23651
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23652
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23653
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23654
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23655
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23656
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23657
            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: 34
diff changeset
 23658
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23659
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23660
                symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23661
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23662
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23663
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23664
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23665
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23666
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23667
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23668
    }/*function_lword_to_dword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23669
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23670
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23671
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23672
 *TRUNC
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23673
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23674
    case function_trunc :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23675
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23676
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23677
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23678
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23679
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23680
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23681
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23682
            if(search_expression_type->is_real_type(IN_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23683
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23684
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23685
                symbol_c * return_type_symbol = &search_constant_type_c::constant_int_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23686
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23687
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23688
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23689
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23690
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23691
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23692
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23693
    }/*function_trunc*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23694
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23695
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23696
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23697
 *BCD_TO_USINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23698
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23699
    case function_bcd_to_usint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23700
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23701
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23702
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23703
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23704
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23705
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23706
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23707
            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
 23708
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 23709
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 23710
                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
 23711
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 23712
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 23713
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 23714
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 23715
            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
 23716
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 23717
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23718
    }/*function_bcd_to_usint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23719
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23720
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23721
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23722
 *BCD_TO_UINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23723
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23724
    case function_bcd_to_uint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23725
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23726
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23727
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23728
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23729
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23730
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23731
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23732
            if(search_expression_type->is_same_type(&search_constant_type_c::word_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
 23733
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 23734
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 23735
                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
 23736
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 23737
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 23738
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 23739
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 23740
            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
 23741
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 23742
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23743
    }/*function_bcd_to_uint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23744
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23745
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23746
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23747
 *BCD_TO_UDINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23748
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23749
    case function_bcd_to_udint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23750
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23751
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23752
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23753
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23754
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23755
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23756
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23757
            if(search_expression_type->is_same_type(&search_constant_type_c::dword_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
 23758
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 23759
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 23760
                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
 23761
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 23762
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 23763
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 23764
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 23765
            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
 23766
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 23767
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23768
    }/*function_bcd_to_udint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23769
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23770
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23771
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23772
 *BCD_TO_ULINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23773
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23774
    case function_bcd_to_ulint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23775
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23776
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23777
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23778
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23779
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23780
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23781
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23782
            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
 23783
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 23784
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 23785
                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
 23786
                return return_type_symbol;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 23787
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 23788
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 23789
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 23790
            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
 23791
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 23792
        
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23793
    }/*function_bcd_to_ulint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23794
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23795
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23796
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23797
 *USINT_TO_BCD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23798
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23799
    case function_usint_to_bcd :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23800
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23801
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23802
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23803
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23804
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23805
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23806
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23807
            if(search_expression_type->is_same_type(&search_constant_type_c::usint_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23808
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23809
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23810
                symbol_c * return_type_symbol = &search_constant_type_c::constant_int_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23811
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23812
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23813
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23814
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23815
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23816
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23817
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23818
    }/*function_usint_to_bcd*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23819
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23820
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23821
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23822
 *UINT_TO_BCD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23823
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23824
    case function_uint_to_bcd :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23825
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23826
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23827
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23828
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23829
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23830
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23831
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23832
            if(search_expression_type->is_same_type(&search_constant_type_c::uint_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23833
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23834
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23835
                symbol_c * return_type_symbol = &search_constant_type_c::constant_int_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23836
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23837
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23838
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23839
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23840
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23841
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23842
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23843
    }/*function_uint_to_bcd*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23844
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23845
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23846
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23847
 *UDINT_TO_BCD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23848
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23849
    case function_udint_to_bcd :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23850
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23851
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23852
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23853
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23854
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23855
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23856
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23857
            if(search_expression_type->is_same_type(&search_constant_type_c::udint_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23858
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23859
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23860
                symbol_c * return_type_symbol = &search_constant_type_c::constant_int_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23861
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23862
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23863
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23864
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23865
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23866
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23867
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23868
    }/*function_udint_to_bcd*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23869
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23870
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23871
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23872
 *ULINT_TO_BCD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23873
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23874
    case function_ulint_to_bcd :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23875
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23876
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23877
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23878
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23879
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23880
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23881
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23882
            if(search_expression_type->is_same_type(&search_constant_type_c::ulint_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23883
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23884
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23885
                symbol_c * return_type_symbol = &search_constant_type_c::constant_int_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23886
                return return_type_symbol;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23887
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23888
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23889
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23890
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23891
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23892
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23893
    }/*function_ulint_to_bcd*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23894
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23895
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23896
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23897
 *DATE_AND_TIME_TO_TIME_OF_DAY
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23898
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23899
    case function_date_and_time_to_time_of_day :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23900
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23901
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23902
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23903
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23904
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23905
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23906
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23907
            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: 34
diff changeset
 23908
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23909
        
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 23910
                symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 23911
                return return_type_symbol;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 23912
                
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 23913
            }
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 23914
            
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 23915
            ERROR;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 23916
        }
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 23917
        
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23918
    }/*function_date_and_time_to_time_of_day*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23919
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 23920
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 23921
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 23922
 *DATE_AND_TIME_TO_DATE
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 23923
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23924
    case function_date_and_time_to_date :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23925
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23926
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23927
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23928
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23929
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23930
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23931
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 23932
            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: 34
diff changeset
 23933
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23934
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23935
                symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23936
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23937
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23938
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23939
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23940
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23941
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23942
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23943
    }/*function_date_and_time_to_date*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23944
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 23945
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 23946
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 23947
 *ABS
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 23948
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23949
    case function_abs :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23950
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23951
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23952
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23953
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23954
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23955
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23956
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23957
            if(search_expression_type->is_num_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23958
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23959
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23960
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23961
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23962
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23963
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23964
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23965
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23966
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23967
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23968
    }/*function_abs*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23969
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 23970
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 23971
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 23972
 *SQRT
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 23973
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23974
    case function_sqrt :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23975
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23976
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23977
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23978
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23979
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23980
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23981
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23982
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23983
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23984
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23985
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23986
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23987
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23988
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23989
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23990
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23991
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23992
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23993
    }/*function_sqrt*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23994
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 23995
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 23996
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 23997
 *LN
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 23998
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 23999
    case function_ln :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24000
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24001
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24002
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24003
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24004
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24005
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24006
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24007
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24008
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24009
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24010
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24011
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24012
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24013
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24014
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24015
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24016
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24017
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24018
    }/*function_ln*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24019
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24020
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24021
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24022
 *LOG
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24023
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24024
    case function_log :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24025
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24026
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24027
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24028
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24029
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24030
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24031
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24032
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24033
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24034
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24035
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24036
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24037
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24038
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24039
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24040
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24041
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24042
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24043
    }/*function_log*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24044
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24045
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24046
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24047
 *EXP
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24048
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24049
    case function_exp :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24050
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24051
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24052
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24053
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24054
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24055
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24056
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24057
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24058
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24059
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24060
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24061
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24062
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24063
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24064
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24065
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24066
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24067
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24068
    }/*function_exp*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24069
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24070
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24071
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24072
 *SIN
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24073
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24074
    case function_sin :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24075
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24076
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24077
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24078
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24079
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24080
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24081
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24082
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24083
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24084
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24085
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24086
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24087
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24088
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24089
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24090
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24091
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24092
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24093
    }/*function_sin*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24094
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24095
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24096
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24097
 *COS
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24098
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24099
    case function_cos :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24100
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24101
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24102
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24103
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24104
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24105
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24106
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24107
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24108
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24109
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24110
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24111
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24112
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24113
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24114
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24115
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24116
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24117
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24118
    }/*function_cos*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24119
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24120
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24121
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24122
 *TAN
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24123
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24124
    case function_tan :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24125
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24126
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24127
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24128
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24129
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24130
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24131
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24132
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24133
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24134
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24135
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24136
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24137
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24138
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24139
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24140
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24141
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24142
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24143
    }/*function_tan*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24144
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24145
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24146
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24147
 *ASIN
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24148
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24149
    case function_asin :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24150
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24151
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24152
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24153
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24154
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24155
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24156
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24157
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24158
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24159
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24160
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24161
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24162
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24163
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24164
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24165
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24166
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24167
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24168
    }/*function_asin*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24169
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24170
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24171
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24172
 *ACOS
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24173
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24174
    case function_acos :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24175
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24176
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24177
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24178
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24179
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24180
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24181
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24182
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24183
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24184
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24185
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24186
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24187
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24188
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24189
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24190
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24191
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24192
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24193
    }/*function_acos*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24194
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24195
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24196
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24197
 *ATAN
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24198
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24199
    case function_atan :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24200
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24201
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24202
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24203
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24204
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24205
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24206
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24207
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24208
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24209
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24210
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24211
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24212
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24213
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24214
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24215
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24216
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24217
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24218
    }/*function_atan*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24219
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24220
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24221
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24222
 *ADD
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24223
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24224
    case function_add :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24225
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24226
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24227
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24228
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24229
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24230
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24231
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24232
            if(search_expression_type->is_num_type(IN1_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24233
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24234
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24235
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24236
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24237
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24238
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24239
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24240
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24241
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24242
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24243
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24244
                    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: 34
diff changeset
 24245
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24246
                    if(search_expression_type->is_num_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24247
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24248
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24249
                        symbol_c * return_type_symbol = last_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24250
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24251
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24252
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24253
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24254
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24255
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24256
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24257
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24258
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 24259
            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: 34
diff changeset
 24260
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24261
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24262
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24263
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24264
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24265
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24266
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24267
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24268
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24269
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24270
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24271
                    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: 34
diff changeset
 24272
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 24273
                    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: 34
diff changeset
 24274
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24275
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24276
                        symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24277
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24278
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24279
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24280
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24281
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24282
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24283
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24284
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24285
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 24286
            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: 34
diff changeset
 24287
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24288
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24289
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24290
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24291
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24292
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24293
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24294
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24295
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24296
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24297
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24298
                    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: 34
diff changeset
 24299
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 24300
                    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: 34
diff changeset
 24301
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24302
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24303
                        symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24304
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24305
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24306
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24307
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24308
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24309
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24310
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24311
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24312
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 24313
            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: 34
diff changeset
 24314
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24315
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24316
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24317
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24318
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24319
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24320
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24321
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24322
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24323
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24324
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24325
                    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: 34
diff changeset
 24326
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 24327
                    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: 34
diff changeset
 24328
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24329
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24330
                        symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24331
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24332
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24333
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24334
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24335
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24336
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24337
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24338
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24339
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24340
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24341
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24342
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24343
    }/*function_add*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24344
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24345
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24346
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24347
 *MUL
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24348
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24349
    case function_mul :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24350
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24351
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24352
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24353
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24354
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24355
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24356
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24357
            if(search_expression_type->is_num_type(IN1_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24358
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24359
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24360
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24361
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24362
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24363
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24364
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24365
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24366
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24367
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24368
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24369
                    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: 34
diff changeset
 24370
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24371
                    if(search_expression_type->is_num_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24372
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24373
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24374
                        symbol_c * return_type_symbol = last_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24375
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24376
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24377
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24378
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24379
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24380
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24381
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24382
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24383
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 24384
            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: 34
diff changeset
 24385
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24386
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24387
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24388
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24389
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24390
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24391
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24392
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24393
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24394
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24395
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24396
                    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: 34
diff changeset
 24397
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24398
                    if(search_expression_type->is_num_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24399
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24400
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24401
                        symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24402
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24403
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24404
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24405
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24406
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24407
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24408
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24409
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24410
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24411
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24412
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24413
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24414
    }/*function_mul*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24415
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24416
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24417
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24418
 *SUB
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24419
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24420
    case function_sub :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24421
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24422
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24423
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24424
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24425
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24426
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24427
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24428
            if(search_expression_type->is_num_type(IN1_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24429
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24430
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24431
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24432
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24433
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24434
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24435
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24436
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24437
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24438
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24439
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24440
                    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: 34
diff changeset
 24441
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24442
                    if(search_expression_type->is_num_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24443
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24444
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24445
                        symbol_c * return_type_symbol = last_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24446
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24447
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24448
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24449
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24450
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24451
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24452
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24453
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24454
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 24455
            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: 34
diff changeset
 24456
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24457
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24458
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24459
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24460
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24461
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24462
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24463
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24464
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24465
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24466
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24467
                    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: 34
diff changeset
 24468
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 24469
                    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: 34
diff changeset
 24470
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24471
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24472
                        symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24473
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24474
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24475
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24476
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24477
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24478
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24479
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24480
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24481
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 24482
            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: 34
diff changeset
 24483
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24484
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24485
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24486
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24487
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24488
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24489
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24490
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24491
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24492
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24493
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24494
                    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: 34
diff changeset
 24495
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 24496
                    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: 34
diff changeset
 24497
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24498
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24499
                        symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24500
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24501
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24502
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24503
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 24504
                    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: 34
diff changeset
 24505
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24506
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24507
                        symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24508
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24509
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24510
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24511
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24512
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24513
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24514
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24515
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24516
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 24517
            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: 34
diff changeset
 24518
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24519
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24520
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24521
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24522
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24523
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24524
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24525
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24526
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24527
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24528
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24529
                    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: 34
diff changeset
 24530
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 24531
                    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: 34
diff changeset
 24532
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24533
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24534
                        symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24535
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24536
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24537
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24538
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 24539
                    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: 34
diff changeset
 24540
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24541
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24542
                        symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24543
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24544
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24545
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24546
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24547
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24548
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24549
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24550
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24551
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 24552
            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: 34
diff changeset
 24553
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24554
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24555
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24556
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24557
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24558
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24559
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24560
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24561
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24562
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24563
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24564
                    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: 34
diff changeset
 24565
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 24566
                    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: 34
diff changeset
 24567
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24568
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24569
                        symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24570
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24571
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24572
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24573
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24574
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24575
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24576
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24577
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24578
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24579
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24580
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24581
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24582
    }/*function_sub*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24583
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24584
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24585
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24586
 *DIV
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24587
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24588
    case function_div :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24589
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24590
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24591
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24592
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24593
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24594
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24595
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24596
            if(search_expression_type->is_num_type(IN1_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24597
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24598
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24599
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24600
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24601
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24602
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24603
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24604
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24605
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24606
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24607
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24608
                    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: 34
diff changeset
 24609
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24610
                    if(search_expression_type->is_num_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24611
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24612
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24613
                        symbol_c * return_type_symbol = last_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24614
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24615
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24616
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24617
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24618
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24619
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24620
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24621
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24622
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 24623
            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: 34
diff changeset
 24624
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24625
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24626
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24627
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24628
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24629
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24630
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24631
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24632
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24633
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24634
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24635
                    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: 34
diff changeset
 24636
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24637
                    if(search_expression_type->is_num_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24638
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24639
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24640
                        symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24641
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24642
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24643
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24644
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24645
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24646
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24647
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24648
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24649
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24650
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24651
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24652
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24653
    }/*function_div*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24654
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24655
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24656
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24657
 *MOD
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24658
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24659
    case function_mod :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24660
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24661
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24662
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24663
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24664
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24665
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24666
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24667
            if(search_expression_type->is_num_type(IN1_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24668
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24669
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24670
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24671
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24672
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24673
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24674
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24675
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24676
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24677
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24678
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24679
                    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: 34
diff changeset
 24680
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24681
                    if(search_expression_type->is_num_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24682
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24683
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24684
                        symbol_c * return_type_symbol = last_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24685
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24686
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24687
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24688
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24689
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24690
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24691
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24692
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24693
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24694
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24695
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24696
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24697
    }/*function_mod*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24698
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24699
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24700
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24701
 *EXPT
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24702
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24703
    case function_expt :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24704
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24705
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24706
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24707
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24708
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24709
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24710
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24711
            if(search_expression_type->is_num_type(IN1_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24712
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24713
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24714
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24715
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24716
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24717
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24718
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24719
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24720
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24721
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24722
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24723
                    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: 34
diff changeset
 24724
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24725
                    if(search_expression_type->is_num_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24726
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24727
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24728
                        symbol_c * return_type_symbol = last_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24729
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24730
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24731
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24732
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24733
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24734
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24735
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24736
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24737
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24738
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24739
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24740
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24741
    }/*function_expt*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24742
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24743
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24744
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24745
 *MOVE
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24746
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24747
    case function_move :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24748
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24749
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24750
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24751
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24752
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24753
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24754
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24755
            if(search_expression_type->is_num_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24756
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24757
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24758
                symbol_c * return_type_symbol = last_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24759
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24760
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24761
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24762
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24763
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24764
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24765
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24766
    }/*function_move*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24767
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24768
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24769
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24770
 *SHL
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24771
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24772
    case function_shl :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24773
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24774
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24775
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24776
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24777
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24778
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24779
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24780
            if(search_expression_type->is_binary_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24781
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24782
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24783
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24784
                    identifier_c param_name("N");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24785
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24786
                    symbol_c *N_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24787
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24788
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24789
                    if (N_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24790
                      N_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24791
                    symbol_c *N_type_symbol = search_expression_type->get_type(N_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24792
                    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: 34
diff changeset
 24793
                    
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
 24794
                    if(search_expression_type->is_integer_type(N_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24795
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24796
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24797
                        symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24798
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24799
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24800
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24801
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24802
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24803
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24804
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24805
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24806
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24807
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24808
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24809
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24810
    }/*function_shl*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24811
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24812
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24813
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24814
 *SHR
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24815
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24816
    case function_shr :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24817
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24818
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24819
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24820
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24821
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24822
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24823
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24824
            if(search_expression_type->is_binary_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24825
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24826
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24827
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24828
                    identifier_c param_name("N");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24829
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24830
                    symbol_c *N_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24831
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24832
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24833
                    if (N_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24834
                      N_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24835
                    symbol_c *N_type_symbol = search_expression_type->get_type(N_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24836
                    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: 34
diff changeset
 24837
                    
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
 24838
                    if(search_expression_type->is_integer_type(N_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24839
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24840
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24841
                        symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24842
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24843
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24844
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24845
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24846
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24847
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24848
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24849
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24850
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24851
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24852
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24853
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24854
    }/*function_shr*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24855
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24856
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24857
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24858
 *ROR
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24859
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24860
    case function_ror :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24861
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24862
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24863
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24864
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24865
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24866
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24867
            
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 24868
            if(search_expression_type->is_nbinary_type(IN_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24869
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24870
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24871
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24872
                    identifier_c param_name("N");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24873
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24874
                    symbol_c *N_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24875
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24876
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24877
                    if (N_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24878
                      N_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24879
                    symbol_c *N_type_symbol = search_expression_type->get_type(N_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24880
                    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: 34
diff changeset
 24881
                    
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
 24882
                    if(search_expression_type->is_integer_type(N_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24883
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24884
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24885
                        symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24886
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24887
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24888
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24889
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24890
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24891
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24892
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24893
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24894
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24895
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24896
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24897
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24898
    }/*function_ror*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24899
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24900
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24901
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24902
 *ROL
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24903
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24904
    case function_rol :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24905
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24906
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24907
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24908
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24909
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24910
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24911
            
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 24912
            if(search_expression_type->is_nbinary_type(IN_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24913
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24914
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24915
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24916
                    identifier_c param_name("N");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24917
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24918
                    symbol_c *N_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24919
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24920
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24921
                    if (N_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24922
                      N_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24923
                    symbol_c *N_type_symbol = search_expression_type->get_type(N_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24924
                    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: 34
diff changeset
 24925
                    
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
 24926
                    if(search_expression_type->is_integer_type(N_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24927
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24928
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24929
                        symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24930
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24931
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24932
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24933
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24934
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24935
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24936
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24937
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24938
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24939
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24940
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24941
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24942
    }/*function_rol*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24943
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24944
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24945
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24946
 *AND
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24947
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24948
    case function_and :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24949
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24950
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24951
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24952
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24953
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24954
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24955
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24956
            if(search_expression_type->is_binary_type(IN1_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24957
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24958
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24959
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24960
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24961
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24962
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24963
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24964
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24965
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24966
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24967
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24968
                    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: 34
diff changeset
 24969
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24970
                    if(search_expression_type->is_binary_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24971
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24972
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24973
                        symbol_c * return_type_symbol = last_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24974
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24975
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24976
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24977
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24978
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24979
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24980
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24981
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24982
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24983
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24984
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24985
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24986
    }/*function_and*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24987
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24988
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24989
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24990
 *OR
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 24991
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24992
    case function_or :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24993
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24994
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24995
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24996
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24997
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24998
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 24999
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25000
            if(search_expression_type->is_binary_type(IN1_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25001
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25002
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25003
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25004
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25005
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25006
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25007
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25008
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25009
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25010
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25011
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25012
                    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: 34
diff changeset
 25013
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25014
                    if(search_expression_type->is_binary_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25015
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25016
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25017
                        symbol_c * return_type_symbol = last_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25018
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25019
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25020
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25021
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25022
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25023
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25024
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25025
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25026
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25027
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25028
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25029
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25030
    }/*function_or*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25031
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25032
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25033
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25034
 *XOR
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25035
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25036
    case function_xor :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25037
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25038
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25039
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25040
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25041
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25042
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25043
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25044
            if(search_expression_type->is_binary_type(IN1_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25045
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25046
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25047
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25048
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25049
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25050
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25051
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25052
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25053
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25054
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25055
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25056
                    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: 34
diff changeset
 25057
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25058
                    if(search_expression_type->is_binary_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25059
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25060
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25061
                        symbol_c * return_type_symbol = last_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25062
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25063
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25064
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25065
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25066
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25067
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25068
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25069
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25070
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25071
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25072
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25073
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25074
    }/*function_xor*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25075
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25076
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25077
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25078
 *NOT
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25079
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25080
    case function_not :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25081
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25082
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25083
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25084
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25085
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25086
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25087
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25088
            if(search_expression_type->is_binary_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25089
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25090
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25091
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25092
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25093
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25094
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25095
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25096
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25097
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25098
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25099
    }/*function_not*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25100
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25101
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25102
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25103
 *SEL
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25104
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25105
    case function_sel :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25106
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25107
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25108
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25109
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25110
            symbol_c *G_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25111
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25112
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 25113
            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: 34
diff changeset
 25114
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25115
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25116
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25117
                    identifier_c param_name("IN0");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25118
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25119
                    symbol_c *IN0_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25120
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25121
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25122
                    if (IN0_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25123
                      IN0_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25124
                    symbol_c *IN0_type_symbol = search_expression_type->get_type(IN0_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25125
                    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: 34
diff changeset
 25126
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25127
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25128
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25129
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25130
                        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25131
                            identifier_c param_name("IN1");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25132
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25133
                            symbol_c *IN1_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25134
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25135
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25136
                            if (IN1_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25137
                              IN1_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25138
                            symbol_c *IN1_type_symbol = search_expression_type->get_type(IN1_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25139
                            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: 34
diff changeset
 25140
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25141
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25142
                            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25143
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25144
                                symbol_c * return_type_symbol = last_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25145
                                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25146
                                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25147
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25148
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25149
                            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25150
                        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25151
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25152
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25153
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25154
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25155
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25156
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25157
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25158
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25159
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25160
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25161
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25162
    }/*function_sel*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25163
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25164
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25165
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25166
 *MAX
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25167
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25168
    case function_max :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25169
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25170
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25171
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25172
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25173
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25174
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25175
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25176
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25177
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25178
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25179
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25180
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25181
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25182
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25183
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25184
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25185
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25186
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25187
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25188
                    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: 34
diff changeset
 25189
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25190
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25191
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25192
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25193
                        symbol_c * return_type_symbol = last_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25194
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25195
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25196
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25197
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25198
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25199
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25200
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25201
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25202
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25203
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25204
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25205
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25206
    }/*function_max*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25207
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25208
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25209
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25210
 *MIN
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25211
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25212
    case function_min :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25213
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25214
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25215
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25216
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25217
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25218
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25219
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25220
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25221
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25222
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25223
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25224
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25225
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25226
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25227
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25228
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25229
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25230
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25231
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25232
                    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: 34
diff changeset
 25233
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25234
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25235
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25236
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25237
                        symbol_c * return_type_symbol = last_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25238
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25239
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25240
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25241
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25242
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25243
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25244
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25245
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25246
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25247
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25248
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25249
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25250
    }/*function_min*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25251
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25252
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25253
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25254
 *LIMIT
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25255
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25256
    case function_limit :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25257
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25258
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25259
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25260
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25261
            symbol_c *MN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25262
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25263
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25264
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25265
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25266
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25267
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25268
                    identifier_c param_name("IN");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25269
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25270
                    symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25271
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25272
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25273
                    if (IN_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25274
                      IN_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25275
                    symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25276
                    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: 34
diff changeset
 25277
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25278
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25279
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25280
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25281
                        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25282
                            identifier_c param_name("MX");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25283
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25284
                            symbol_c *MX_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25285
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25286
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25287
                            if (MX_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25288
                              MX_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25289
                            symbol_c *MX_type_symbol = search_expression_type->get_type(MX_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25290
                            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: 34
diff changeset
 25291
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25292
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25293
                            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25294
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25295
                                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25296
                                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25297
                                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25298
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25299
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25300
                            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25301
                        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25302
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25303
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25304
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25305
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25306
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25307
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25308
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25309
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25310
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25311
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25312
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25313
    }/*function_limit*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25314
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25315
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25316
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25317
 *MUX
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25318
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25319
    case function_mux :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25320
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25321
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25322
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25323
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25324
            symbol_c *K_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25325
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25326
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25327
            if(search_expression_type->is_integer_type(K_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25328
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25329
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25330
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25331
                    identifier_c param_name("IN0");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25332
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25333
                    symbol_c *IN0_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25334
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25335
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25336
                    if (IN0_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25337
                      IN0_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25338
                    symbol_c *IN0_type_symbol = search_expression_type->get_type(IN0_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25339
                    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: 34
diff changeset
 25340
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25341
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25342
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25343
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25344
                        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25345
                            identifier_c param_name("IN1");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25346
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25347
                            symbol_c *IN1_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25348
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25349
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25350
                            if (IN1_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25351
                              IN1_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25352
                            symbol_c *IN1_type_symbol = search_expression_type->get_type(IN1_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25353
                            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: 34
diff changeset
 25354
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25355
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25356
                            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25357
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25358
                                symbol_c * return_type_symbol = last_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25359
                                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25360
                                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25361
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25362
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25363
                            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25364
                        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25365
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25366
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25367
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25368
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25369
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25370
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25371
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25372
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25373
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25374
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25375
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25376
    }/*function_mux*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25377
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25378
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25379
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25380
 *GT
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25381
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25382
    case function_gt :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25383
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25384
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25385
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25386
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25387
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25388
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25389
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25390
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25391
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25392
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25393
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25394
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25395
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25396
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25397
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25398
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25399
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25400
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25401
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25402
                    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: 34
diff changeset
 25403
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25404
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25405
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25406
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25407
                        symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25408
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25409
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25410
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25411
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25412
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25413
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25414
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25415
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25416
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25417
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25418
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25419
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25420
    }/*function_gt*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25421
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25422
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25423
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25424
 *GE
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25425
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25426
    case function_ge :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25427
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25428
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25429
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25430
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25431
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25432
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25433
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25434
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25435
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25436
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25437
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25438
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25439
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25440
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25441
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25442
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25443
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25444
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25445
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25446
                    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: 34
diff changeset
 25447
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25448
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25449
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25450
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25451
                        symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25452
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25453
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25454
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25455
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25456
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25457
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25458
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25459
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25460
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25461
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25462
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25463
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25464
    }/*function_ge*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25465
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25466
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25467
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25468
 *EQ
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25469
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25470
    case function_eq :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25471
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25472
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25473
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25474
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25475
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25476
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25477
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25478
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25479
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25480
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25481
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25482
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25483
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25484
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25485
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25486
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25487
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25488
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25489
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25490
                    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: 34
diff changeset
 25491
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25492
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25493
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25494
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25495
                        symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25496
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25497
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25498
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25499
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25500
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25501
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25502
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25503
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25504
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25505
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25506
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25507
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25508
    }/*function_eq*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25509
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25510
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25511
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25512
 *LT
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25513
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25514
    case function_lt :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25515
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25516
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25517
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25518
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25519
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25520
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25521
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25522
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25523
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25524
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25525
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25526
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25527
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25528
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25529
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25530
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25531
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25532
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25533
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25534
                    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: 34
diff changeset
 25535
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25536
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25537
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25538
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25539
                        symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25540
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25541
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25542
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25543
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25544
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25545
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25546
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25547
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25548
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25549
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25550
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25551
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25552
    }/*function_lt*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25553
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25554
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25555
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25556
 *LE
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25557
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25558
    case function_le :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25559
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25560
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25561
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25562
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25563
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25564
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25565
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25566
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25567
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25568
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25569
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25570
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25571
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25572
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25573
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25574
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25575
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25576
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25577
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25578
                    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: 34
diff changeset
 25579
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25580
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25581
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25582
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25583
                        symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25584
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25585
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25586
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25587
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25588
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25589
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25590
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25591
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25592
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25593
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25594
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25595
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25596
    }/*function_le*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25597
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25598
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25599
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25600
 *NE
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25601
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25602
    case function_ne :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25603
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25604
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25605
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25606
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25607
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25608
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25609
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25610
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25611
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25612
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25613
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25614
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25615
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25616
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25617
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25618
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25619
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25620
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25621
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25622
                    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: 34
diff changeset
 25623
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25624
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25625
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25626
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25627
                        symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25628
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25629
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25630
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25631
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25632
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25633
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25634
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25635
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25636
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25637
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25638
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25639
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25640
    }/*function_ne*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25641
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25642
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25643
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25644
 *LEN
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25645
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25646
    case function_len :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25647
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25648
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25649
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25650
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25651
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25652
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25653
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 25654
            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: 34
diff changeset
 25655
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25656
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25657
                symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25658
                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25659
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25660
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25661
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25662
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25663
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25664
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25665
    }/*function_len*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25666
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25667
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25668
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25669
 *LEFT
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25670
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25671
    case function_left :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25672
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25673
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25674
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25675
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25676
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25677
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25678
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 25679
            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: 34
diff changeset
 25680
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25681
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25682
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25683
                    identifier_c param_name("L");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25684
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25685
                    symbol_c *L_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25686
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25687
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25688
                    if (L_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25689
                      L_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25690
                    symbol_c *L_type_symbol = search_expression_type->get_type(L_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25691
                    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: 34
diff changeset
 25692
                    
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
 25693
                    if(search_expression_type->is_integer_type(L_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25694
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25695
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25696
                        symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25697
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25698
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25699
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25700
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25701
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25702
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25703
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25704
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25705
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25706
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25707
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25708
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25709
    }/*function_left*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25710
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25711
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25712
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25713
 *RIGHT
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25714
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25715
    case function_right :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25716
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25717
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25718
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25719
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25720
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25721
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25722
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 25723
            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: 34
diff changeset
 25724
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25725
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25726
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25727
                    identifier_c param_name("L");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25728
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25729
                    symbol_c *L_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25730
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25731
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25732
                    if (L_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25733
                      L_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25734
                    symbol_c *L_type_symbol = search_expression_type->get_type(L_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25735
                    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: 34
diff changeset
 25736
                    
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
 25737
                    if(search_expression_type->is_integer_type(L_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25738
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25739
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25740
                        symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25741
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25742
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25743
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25744
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25745
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25746
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25747
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25748
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25749
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25750
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25751
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25752
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25753
    }/*function_right*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25754
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25755
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25756
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25757
 *MID
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25758
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25759
    case function_mid :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25760
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25761
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25762
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25763
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25764
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25765
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25766
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 25767
            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: 34
diff changeset
 25768
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25769
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25770
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25771
                    identifier_c param_name("L");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25772
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25773
                    symbol_c *L_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25774
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25775
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25776
                    if (L_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25777
                      L_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25778
                    symbol_c *L_type_symbol = search_expression_type->get_type(L_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25779
                    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: 34
diff changeset
 25780
                    
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
 25781
                    if(search_expression_type->is_integer_type(L_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25782
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25783
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25784
                        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25785
                            identifier_c param_name("P");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25786
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25787
                            symbol_c *P_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25788
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25789
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25790
                            if (P_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25791
                              P_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25792
                            symbol_c *P_type_symbol = search_expression_type->get_type(P_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25793
                            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: 34
diff changeset
 25794
                            
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
 25795
                            if(search_expression_type->is_integer_type(P_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25796
                            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25797
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25798
                                symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25799
                                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25800
                                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25801
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25802
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25803
                            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25804
                        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25805
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25806
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25807
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25808
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25809
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25810
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25811
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25812
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25813
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25814
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25815
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25816
    }/*function_mid*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25817
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25818
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25819
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25820
 *CONCAT
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25821
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25822
    case function_concat :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25823
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25824
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25825
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25826
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25827
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25828
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25829
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 25830
            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: 34
diff changeset
 25831
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25832
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25833
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25834
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25835
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25836
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25837
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25838
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25839
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25840
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25841
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25842
                    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: 34
diff changeset
 25843
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 25844
                    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: 34
diff changeset
 25845
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25846
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25847
                        symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25848
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25849
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25850
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25851
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25852
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25853
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25854
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25855
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25856
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 25857
            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: 34
diff changeset
 25858
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25859
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25860
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25861
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25862
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25863
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25864
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25865
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25866
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25867
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25868
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25869
                    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: 34
diff changeset
 25870
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 25871
                    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: 34
diff changeset
 25872
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25873
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25874
                        symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25875
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25876
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25877
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25878
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25879
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25880
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25881
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25882
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25883
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25884
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25885
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25886
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25887
    }/*function_concat*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25888
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25889
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25890
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25891
 *INSERT
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25892
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25893
    case function_insert :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25894
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25895
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25896
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25897
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25898
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25899
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25900
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 25901
            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: 34
diff changeset
 25902
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25903
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25904
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25905
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25906
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25907
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25908
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25909
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25910
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25911
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25912
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25913
                    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: 34
diff changeset
 25914
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 25915
                    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: 34
diff changeset
 25916
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25917
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25918
                        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25919
                            identifier_c param_name("P");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25920
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25921
                            symbol_c *P_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25922
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25923
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25924
                            if (P_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25925
                              P_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25926
                            symbol_c *P_type_symbol = search_expression_type->get_type(P_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25927
                            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: 34
diff changeset
 25928
                            
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
 25929
                            if(search_expression_type->is_integer_type(P_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25930
                            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25931
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25932
                                symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25933
                                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25934
                                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25935
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25936
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25937
                            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25938
                        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25939
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25940
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25941
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25942
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25943
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25944
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25945
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25946
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25947
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25948
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25949
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25950
    }/*function_insert*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25951
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25952
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25953
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25954
 *DELETE
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 25955
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25956
    case function_delete :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25957
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25958
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25959
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25960
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25961
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25962
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25963
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 25964
            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: 34
diff changeset
 25965
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25966
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25967
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25968
                    identifier_c param_name("L");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25969
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25970
                    symbol_c *L_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25971
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25972
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25973
                    if (L_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25974
                      L_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25975
                    symbol_c *L_type_symbol = search_expression_type->get_type(L_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25976
                    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: 34
diff changeset
 25977
                    
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
 25978
                    if(search_expression_type->is_integer_type(L_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25979
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25980
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25981
                        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25982
                            identifier_c param_name("P");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25983
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25984
                            symbol_c *P_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25985
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25986
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25987
                            if (P_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25988
                              P_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25989
                            symbol_c *P_type_symbol = search_expression_type->get_type(P_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25990
                            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: 34
diff changeset
 25991
                            
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
 25992
                            if(search_expression_type->is_integer_type(P_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25993
                            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25994
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25995
                                symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25996
                                return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25997
                                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25998
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 25999
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26000
                            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26001
                        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26002
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26003
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26004
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26005
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26006
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26007
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26008
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26009
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26010
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26011
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26012
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26013
    }/*function_delete*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26014
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 26015
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 26016
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 26017
 *REPLACE
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 26018
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26019
    case function_replace :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26020
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26021
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26022
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26023
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26024
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26025
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26026
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 26027
            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: 34
diff changeset
 26028
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26029
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26030
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26031
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26032
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26033
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26034
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26035
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26036
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26037
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26038
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26039
                    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: 34
diff changeset
 26040
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 26041
                    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: 34
diff changeset
 26042
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26043
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26044
                        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26045
                            identifier_c param_name("L");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26046
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26047
                            symbol_c *L_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26048
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26049
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26050
                            if (L_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26051
                              L_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26052
                            symbol_c *L_type_symbol = search_expression_type->get_type(L_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26053
                            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: 34
diff changeset
 26054
                            
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
 26055
                            if(search_expression_type->is_integer_type(L_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26056
                            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26057
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26058
                                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26059
                                    identifier_c param_name("P");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26060
                                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26061
                                    symbol_c *P_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26062
                                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26063
                                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26064
                                    if (P_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26065
                                      P_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26066
                                    symbol_c *P_type_symbol = search_expression_type->get_type(P_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26067
                                    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: 34
diff changeset
 26068
                                    
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
 26069
                                    if(search_expression_type->is_integer_type(P_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26070
                                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26071
                                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26072
                                        symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26073
                                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26074
                                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26075
                                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26076
                                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26077
                                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26078
                                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26079
                                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26080
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26081
                            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26082
                            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26083
                        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26084
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26085
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26086
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26087
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26088
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26089
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26090
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26091
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26092
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26093
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26094
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26095
    }/*function_replace*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26096
    break;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 26097
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 26098
/****
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 26099
 *FIND
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 26100
 */
35
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26101
    case function_find :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26102
    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26103
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26104
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26105
        {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26106
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26107
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26108
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 26109
            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: 34
diff changeset
 26110
            {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26111
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26112
                {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26113
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26114
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26115
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26116
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26117
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26118
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26119
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26120
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26121
                    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: 34
diff changeset
 26122
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 40
diff changeset
 26123
                    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: 34
diff changeset
 26124
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26125
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26126
                        symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26127
                        return return_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26128
                        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26129
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26130
                    
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26131
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26132
                }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26133
                
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26134
            }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26135
            
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26136
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26137
        }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26138
        
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26139
    }/*function_find*/
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26140
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26141
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26142
    case function_none :
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26143
    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26144
  }
9f3d6c089533 Generated code for il finished
lbessard
parents: 34
diff changeset
 26145
  return NULL;
33
4507beb2aac6 preliminary std lib support for ST
etisserant
parents:
diff changeset
 26146
}