absyntax_utils/get_function_type_decl.c
author mario
Mon, 01 Jun 2009 21:08:44 +0200
changeset 181 38d6eb056260
child 199 b075f28ec081
permissions -rw-r--r--
Moving absyntax utility files out from stage4/generate_c
181
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
     1
/*
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
     2
 * (c) 2008 Edouard TISSERANT
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
     3
 *
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
     4
 * Offered to the public under the terms of the GNU General Public License
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
     5
 * as published by the Free Software Foundation; either version 2 of the
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
     6
 * License, or (at your option) any later version.
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
     7
 *
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
     8
 * This program is distributed in the hope that it will be useful, but
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
     9
 * WITHOUT ANY WARRANTY; without even the implied warranty of
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    11
 * Public License for more details.
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    12
 *
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    13
 * This code is made available on the understanding that it will not be
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    14
 * used in safety-critical situations without a full and competent review.
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    15
 */
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    16
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    17
/*
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    18
 * An IEC 61131-3 IL and ST compiler.
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    19
 *
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    20
 * Based on the
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    21
 * FINAL DRAFT - IEC 61131-3, 2nd Ed. (2001-12-10)
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    22
 *
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    23
 */
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    24
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    25
/****
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    26
 * IEC 61131-3 standard function library
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    27
 * generated code, do not edit by hand
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    28
 */
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    29
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    30
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    31
function_type_t get_function_type(identifier_c *function_name) {
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    32
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    33
if (!strcasecmp(function_name->value, "REAL_TO_SINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    34
    return function_real_to_sint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    35
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    36
if (!strcasecmp(function_name->value, "REAL_TO_LINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    37
    return function_real_to_lint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    38
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    39
if (!strcasecmp(function_name->value, "REAL_TO_DINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    40
    return function_real_to_dint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    41
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    42
if (!strcasecmp(function_name->value, "REAL_TO_DATE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    43
    return function_real_to_date;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    44
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    45
if (!strcasecmp(function_name->value, "REAL_TO_DWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    46
    return function_real_to_dword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    47
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    48
if (!strcasecmp(function_name->value, "REAL_TO_DT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    49
    return function_real_to_dt;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    50
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    51
if (!strcasecmp(function_name->value, "REAL_TO_TOD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    52
    return function_real_to_tod;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    53
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    54
if (!strcasecmp(function_name->value, "REAL_TO_UDINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    55
    return function_real_to_udint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    56
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    57
if (!strcasecmp(function_name->value, "REAL_TO_WORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    58
    return function_real_to_word;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    59
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    60
if (!strcasecmp(function_name->value, "REAL_TO_STRING"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    61
    return function_real_to_string;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    62
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    63
if (!strcasecmp(function_name->value, "REAL_TO_LWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    64
    return function_real_to_lword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    65
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    66
if (!strcasecmp(function_name->value, "REAL_TO_UINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    67
    return function_real_to_uint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    68
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    69
if (!strcasecmp(function_name->value, "REAL_TO_LREAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    70
    return function_real_to_lreal;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    71
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    72
if (!strcasecmp(function_name->value, "REAL_TO_BYTE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    73
    return function_real_to_byte;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    74
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    75
if (!strcasecmp(function_name->value, "REAL_TO_USINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    76
    return function_real_to_usint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    77
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    78
if (!strcasecmp(function_name->value, "REAL_TO_ULINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    79
    return function_real_to_ulint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    80
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    81
if (!strcasecmp(function_name->value, "REAL_TO_BOOL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    82
    return function_real_to_bool;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    83
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    84
if (!strcasecmp(function_name->value, "REAL_TO_TIME"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    85
    return function_real_to_time;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    86
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    87
if (!strcasecmp(function_name->value, "REAL_TO_INT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    88
    return function_real_to_int;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    89
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    90
if (!strcasecmp(function_name->value, "SINT_TO_REAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    91
    return function_sint_to_real;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    92
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    93
if (!strcasecmp(function_name->value, "SINT_TO_LINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    94
    return function_sint_to_lint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    95
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    96
if (!strcasecmp(function_name->value, "SINT_TO_DINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    97
    return function_sint_to_dint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    98
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
    99
if (!strcasecmp(function_name->value, "SINT_TO_DATE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   100
    return function_sint_to_date;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   101
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   102
if (!strcasecmp(function_name->value, "SINT_TO_DWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   103
    return function_sint_to_dword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   104
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   105
if (!strcasecmp(function_name->value, "SINT_TO_DT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   106
    return function_sint_to_dt;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   107
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   108
if (!strcasecmp(function_name->value, "SINT_TO_TOD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   109
    return function_sint_to_tod;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   110
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   111
if (!strcasecmp(function_name->value, "SINT_TO_UDINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   112
    return function_sint_to_udint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   113
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   114
if (!strcasecmp(function_name->value, "SINT_TO_WORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   115
    return function_sint_to_word;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   116
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   117
if (!strcasecmp(function_name->value, "SINT_TO_STRING"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   118
    return function_sint_to_string;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   119
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   120
if (!strcasecmp(function_name->value, "SINT_TO_LWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   121
    return function_sint_to_lword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   122
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   123
if (!strcasecmp(function_name->value, "SINT_TO_UINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   124
    return function_sint_to_uint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   125
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   126
if (!strcasecmp(function_name->value, "SINT_TO_LREAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   127
    return function_sint_to_lreal;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   128
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   129
if (!strcasecmp(function_name->value, "SINT_TO_BYTE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   130
    return function_sint_to_byte;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   131
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   132
if (!strcasecmp(function_name->value, "SINT_TO_USINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   133
    return function_sint_to_usint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   134
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   135
if (!strcasecmp(function_name->value, "SINT_TO_ULINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   136
    return function_sint_to_ulint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   137
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   138
if (!strcasecmp(function_name->value, "SINT_TO_BOOL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   139
    return function_sint_to_bool;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   140
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   141
if (!strcasecmp(function_name->value, "SINT_TO_TIME"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   142
    return function_sint_to_time;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   143
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   144
if (!strcasecmp(function_name->value, "SINT_TO_INT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   145
    return function_sint_to_int;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   146
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   147
if (!strcasecmp(function_name->value, "LINT_TO_REAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   148
    return function_lint_to_real;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   149
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   150
if (!strcasecmp(function_name->value, "LINT_TO_SINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   151
    return function_lint_to_sint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   152
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   153
if (!strcasecmp(function_name->value, "LINT_TO_DINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   154
    return function_lint_to_dint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   155
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   156
if (!strcasecmp(function_name->value, "LINT_TO_DATE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   157
    return function_lint_to_date;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   158
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   159
if (!strcasecmp(function_name->value, "LINT_TO_DWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   160
    return function_lint_to_dword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   161
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   162
if (!strcasecmp(function_name->value, "LINT_TO_DT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   163
    return function_lint_to_dt;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   164
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   165
if (!strcasecmp(function_name->value, "LINT_TO_TOD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   166
    return function_lint_to_tod;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   167
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   168
if (!strcasecmp(function_name->value, "LINT_TO_UDINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   169
    return function_lint_to_udint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   170
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   171
if (!strcasecmp(function_name->value, "LINT_TO_WORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   172
    return function_lint_to_word;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   173
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   174
if (!strcasecmp(function_name->value, "LINT_TO_STRING"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   175
    return function_lint_to_string;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   176
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   177
if (!strcasecmp(function_name->value, "LINT_TO_LWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   178
    return function_lint_to_lword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   179
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   180
if (!strcasecmp(function_name->value, "LINT_TO_UINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   181
    return function_lint_to_uint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   182
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   183
if (!strcasecmp(function_name->value, "LINT_TO_LREAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   184
    return function_lint_to_lreal;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   185
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   186
if (!strcasecmp(function_name->value, "LINT_TO_BYTE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   187
    return function_lint_to_byte;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   188
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   189
if (!strcasecmp(function_name->value, "LINT_TO_USINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   190
    return function_lint_to_usint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   191
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   192
if (!strcasecmp(function_name->value, "LINT_TO_ULINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   193
    return function_lint_to_ulint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   194
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   195
if (!strcasecmp(function_name->value, "LINT_TO_BOOL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   196
    return function_lint_to_bool;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   197
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   198
if (!strcasecmp(function_name->value, "LINT_TO_TIME"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   199
    return function_lint_to_time;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   200
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   201
if (!strcasecmp(function_name->value, "LINT_TO_INT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   202
    return function_lint_to_int;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   203
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   204
if (!strcasecmp(function_name->value, "DINT_TO_REAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   205
    return function_dint_to_real;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   206
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   207
if (!strcasecmp(function_name->value, "DINT_TO_SINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   208
    return function_dint_to_sint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   209
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   210
if (!strcasecmp(function_name->value, "DINT_TO_LINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   211
    return function_dint_to_lint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   212
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   213
if (!strcasecmp(function_name->value, "DINT_TO_DATE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   214
    return function_dint_to_date;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   215
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   216
if (!strcasecmp(function_name->value, "DINT_TO_DWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   217
    return function_dint_to_dword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   218
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   219
if (!strcasecmp(function_name->value, "DINT_TO_DT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   220
    return function_dint_to_dt;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   221
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   222
if (!strcasecmp(function_name->value, "DINT_TO_TOD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   223
    return function_dint_to_tod;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   224
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   225
if (!strcasecmp(function_name->value, "DINT_TO_UDINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   226
    return function_dint_to_udint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   227
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   228
if (!strcasecmp(function_name->value, "DINT_TO_WORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   229
    return function_dint_to_word;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   230
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   231
if (!strcasecmp(function_name->value, "DINT_TO_STRING"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   232
    return function_dint_to_string;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   233
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   234
if (!strcasecmp(function_name->value, "DINT_TO_LWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   235
    return function_dint_to_lword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   236
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   237
if (!strcasecmp(function_name->value, "DINT_TO_UINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   238
    return function_dint_to_uint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   239
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   240
if (!strcasecmp(function_name->value, "DINT_TO_LREAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   241
    return function_dint_to_lreal;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   242
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   243
if (!strcasecmp(function_name->value, "DINT_TO_BYTE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   244
    return function_dint_to_byte;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   245
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   246
if (!strcasecmp(function_name->value, "DINT_TO_USINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   247
    return function_dint_to_usint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   248
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   249
if (!strcasecmp(function_name->value, "DINT_TO_ULINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   250
    return function_dint_to_ulint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   251
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   252
if (!strcasecmp(function_name->value, "DINT_TO_BOOL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   253
    return function_dint_to_bool;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   254
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   255
if (!strcasecmp(function_name->value, "DINT_TO_TIME"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   256
    return function_dint_to_time;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   257
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   258
if (!strcasecmp(function_name->value, "DINT_TO_INT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   259
    return function_dint_to_int;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   260
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   261
if (!strcasecmp(function_name->value, "DATE_TO_REAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   262
    return function_date_to_real;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   263
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   264
if (!strcasecmp(function_name->value, "DATE_TO_SINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   265
    return function_date_to_sint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   266
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   267
if (!strcasecmp(function_name->value, "DATE_TO_LINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   268
    return function_date_to_lint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   269
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   270
if (!strcasecmp(function_name->value, "DATE_TO_DINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   271
    return function_date_to_dint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   272
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   273
if (!strcasecmp(function_name->value, "DATE_TO_DWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   274
    return function_date_to_dword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   275
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   276
if (!strcasecmp(function_name->value, "DATE_TO_UDINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   277
    return function_date_to_udint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   278
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   279
if (!strcasecmp(function_name->value, "DATE_TO_WORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   280
    return function_date_to_word;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   281
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   282
if (!strcasecmp(function_name->value, "DATE_TO_STRING"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   283
    return function_date_to_string;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   284
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   285
if (!strcasecmp(function_name->value, "DATE_TO_LWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   286
    return function_date_to_lword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   287
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   288
if (!strcasecmp(function_name->value, "DATE_TO_UINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   289
    return function_date_to_uint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   290
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   291
if (!strcasecmp(function_name->value, "DATE_TO_LREAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   292
    return function_date_to_lreal;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   293
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   294
if (!strcasecmp(function_name->value, "DATE_TO_BYTE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   295
    return function_date_to_byte;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   296
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   297
if (!strcasecmp(function_name->value, "DATE_TO_USINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   298
    return function_date_to_usint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   299
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   300
if (!strcasecmp(function_name->value, "DATE_TO_ULINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   301
    return function_date_to_ulint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   302
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   303
if (!strcasecmp(function_name->value, "DATE_TO_INT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   304
    return function_date_to_int;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   305
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   306
if (!strcasecmp(function_name->value, "DWORD_TO_REAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   307
    return function_dword_to_real;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   308
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   309
if (!strcasecmp(function_name->value, "DWORD_TO_SINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   310
    return function_dword_to_sint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   311
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   312
if (!strcasecmp(function_name->value, "DWORD_TO_LINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   313
    return function_dword_to_lint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   314
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   315
if (!strcasecmp(function_name->value, "DWORD_TO_DINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   316
    return function_dword_to_dint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   317
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   318
if (!strcasecmp(function_name->value, "DWORD_TO_DATE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   319
    return function_dword_to_date;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   320
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   321
if (!strcasecmp(function_name->value, "DWORD_TO_DT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   322
    return function_dword_to_dt;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   323
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   324
if (!strcasecmp(function_name->value, "DWORD_TO_TOD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   325
    return function_dword_to_tod;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   326
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   327
if (!strcasecmp(function_name->value, "DWORD_TO_UDINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   328
    return function_dword_to_udint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   329
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   330
if (!strcasecmp(function_name->value, "DWORD_TO_WORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   331
    return function_dword_to_word;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   332
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   333
if (!strcasecmp(function_name->value, "DWORD_TO_STRING"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   334
    return function_dword_to_string;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   335
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   336
if (!strcasecmp(function_name->value, "DWORD_TO_LWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   337
    return function_dword_to_lword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   338
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   339
if (!strcasecmp(function_name->value, "DWORD_TO_UINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   340
    return function_dword_to_uint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   341
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   342
if (!strcasecmp(function_name->value, "DWORD_TO_LREAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   343
    return function_dword_to_lreal;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   344
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   345
if (!strcasecmp(function_name->value, "DWORD_TO_BYTE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   346
    return function_dword_to_byte;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   347
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   348
if (!strcasecmp(function_name->value, "DWORD_TO_USINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   349
    return function_dword_to_usint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   350
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   351
if (!strcasecmp(function_name->value, "DWORD_TO_ULINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   352
    return function_dword_to_ulint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   353
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   354
if (!strcasecmp(function_name->value, "DWORD_TO_BOOL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   355
    return function_dword_to_bool;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   356
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   357
if (!strcasecmp(function_name->value, "DWORD_TO_TIME"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   358
    return function_dword_to_time;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   359
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   360
if (!strcasecmp(function_name->value, "DWORD_TO_INT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   361
    return function_dword_to_int;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   362
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   363
if (!strcasecmp(function_name->value, "DT_TO_REAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   364
    return function_dt_to_real;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   365
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   366
if (!strcasecmp(function_name->value, "DT_TO_SINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   367
    return function_dt_to_sint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   368
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   369
if (!strcasecmp(function_name->value, "DT_TO_LINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   370
    return function_dt_to_lint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   371
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   372
if (!strcasecmp(function_name->value, "DT_TO_DINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   373
    return function_dt_to_dint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   374
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   375
if (!strcasecmp(function_name->value, "DT_TO_DWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   376
    return function_dt_to_dword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   377
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   378
if (!strcasecmp(function_name->value, "DT_TO_UDINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   379
    return function_dt_to_udint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   380
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   381
if (!strcasecmp(function_name->value, "DT_TO_WORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   382
    return function_dt_to_word;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   383
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   384
if (!strcasecmp(function_name->value, "DT_TO_STRING"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   385
    return function_dt_to_string;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   386
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   387
if (!strcasecmp(function_name->value, "DT_TO_LWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   388
    return function_dt_to_lword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   389
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   390
if (!strcasecmp(function_name->value, "DT_TO_UINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   391
    return function_dt_to_uint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   392
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   393
if (!strcasecmp(function_name->value, "DT_TO_LREAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   394
    return function_dt_to_lreal;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   395
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   396
if (!strcasecmp(function_name->value, "DT_TO_BYTE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   397
    return function_dt_to_byte;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   398
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   399
if (!strcasecmp(function_name->value, "DT_TO_USINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   400
    return function_dt_to_usint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   401
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   402
if (!strcasecmp(function_name->value, "DT_TO_ULINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   403
    return function_dt_to_ulint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   404
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   405
if (!strcasecmp(function_name->value, "DT_TO_INT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   406
    return function_dt_to_int;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   407
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   408
if (!strcasecmp(function_name->value, "TOD_TO_REAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   409
    return function_tod_to_real;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   410
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   411
if (!strcasecmp(function_name->value, "TOD_TO_SINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   412
    return function_tod_to_sint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   413
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   414
if (!strcasecmp(function_name->value, "TOD_TO_LINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   415
    return function_tod_to_lint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   416
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   417
if (!strcasecmp(function_name->value, "TOD_TO_DINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   418
    return function_tod_to_dint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   419
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   420
if (!strcasecmp(function_name->value, "TOD_TO_DWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   421
    return function_tod_to_dword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   422
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   423
if (!strcasecmp(function_name->value, "TOD_TO_UDINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   424
    return function_tod_to_udint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   425
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   426
if (!strcasecmp(function_name->value, "TOD_TO_WORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   427
    return function_tod_to_word;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   428
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   429
if (!strcasecmp(function_name->value, "TOD_TO_STRING"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   430
    return function_tod_to_string;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   431
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   432
if (!strcasecmp(function_name->value, "TOD_TO_LWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   433
    return function_tod_to_lword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   434
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   435
if (!strcasecmp(function_name->value, "TOD_TO_UINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   436
    return function_tod_to_uint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   437
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   438
if (!strcasecmp(function_name->value, "TOD_TO_LREAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   439
    return function_tod_to_lreal;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   440
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   441
if (!strcasecmp(function_name->value, "TOD_TO_BYTE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   442
    return function_tod_to_byte;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   443
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   444
if (!strcasecmp(function_name->value, "TOD_TO_USINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   445
    return function_tod_to_usint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   446
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   447
if (!strcasecmp(function_name->value, "TOD_TO_ULINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   448
    return function_tod_to_ulint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   449
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   450
if (!strcasecmp(function_name->value, "TOD_TO_INT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   451
    return function_tod_to_int;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   452
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   453
if (!strcasecmp(function_name->value, "UDINT_TO_REAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   454
    return function_udint_to_real;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   455
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   456
if (!strcasecmp(function_name->value, "UDINT_TO_SINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   457
    return function_udint_to_sint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   458
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   459
if (!strcasecmp(function_name->value, "UDINT_TO_LINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   460
    return function_udint_to_lint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   461
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   462
if (!strcasecmp(function_name->value, "UDINT_TO_DINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   463
    return function_udint_to_dint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   464
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   465
if (!strcasecmp(function_name->value, "UDINT_TO_DATE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   466
    return function_udint_to_date;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   467
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   468
if (!strcasecmp(function_name->value, "UDINT_TO_DWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   469
    return function_udint_to_dword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   470
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   471
if (!strcasecmp(function_name->value, "UDINT_TO_DT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   472
    return function_udint_to_dt;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   473
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   474
if (!strcasecmp(function_name->value, "UDINT_TO_TOD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   475
    return function_udint_to_tod;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   476
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   477
if (!strcasecmp(function_name->value, "UDINT_TO_WORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   478
    return function_udint_to_word;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   479
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   480
if (!strcasecmp(function_name->value, "UDINT_TO_STRING"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   481
    return function_udint_to_string;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   482
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   483
if (!strcasecmp(function_name->value, "UDINT_TO_LWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   484
    return function_udint_to_lword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   485
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   486
if (!strcasecmp(function_name->value, "UDINT_TO_UINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   487
    return function_udint_to_uint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   488
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   489
if (!strcasecmp(function_name->value, "UDINT_TO_LREAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   490
    return function_udint_to_lreal;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   491
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   492
if (!strcasecmp(function_name->value, "UDINT_TO_BYTE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   493
    return function_udint_to_byte;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   494
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   495
if (!strcasecmp(function_name->value, "UDINT_TO_USINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   496
    return function_udint_to_usint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   497
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   498
if (!strcasecmp(function_name->value, "UDINT_TO_ULINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   499
    return function_udint_to_ulint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   500
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   501
if (!strcasecmp(function_name->value, "UDINT_TO_BOOL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   502
    return function_udint_to_bool;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   503
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   504
if (!strcasecmp(function_name->value, "UDINT_TO_TIME"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   505
    return function_udint_to_time;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   506
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   507
if (!strcasecmp(function_name->value, "UDINT_TO_INT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   508
    return function_udint_to_int;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   509
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   510
if (!strcasecmp(function_name->value, "WORD_TO_REAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   511
    return function_word_to_real;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   512
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   513
if (!strcasecmp(function_name->value, "WORD_TO_SINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   514
    return function_word_to_sint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   515
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   516
if (!strcasecmp(function_name->value, "WORD_TO_LINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   517
    return function_word_to_lint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   518
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   519
if (!strcasecmp(function_name->value, "WORD_TO_DINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   520
    return function_word_to_dint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   521
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   522
if (!strcasecmp(function_name->value, "WORD_TO_DATE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   523
    return function_word_to_date;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   524
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   525
if (!strcasecmp(function_name->value, "WORD_TO_DWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   526
    return function_word_to_dword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   527
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   528
if (!strcasecmp(function_name->value, "WORD_TO_DT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   529
    return function_word_to_dt;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   530
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   531
if (!strcasecmp(function_name->value, "WORD_TO_TOD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   532
    return function_word_to_tod;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   533
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   534
if (!strcasecmp(function_name->value, "WORD_TO_UDINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   535
    return function_word_to_udint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   536
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   537
if (!strcasecmp(function_name->value, "WORD_TO_STRING"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   538
    return function_word_to_string;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   539
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   540
if (!strcasecmp(function_name->value, "WORD_TO_LWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   541
    return function_word_to_lword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   542
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   543
if (!strcasecmp(function_name->value, "WORD_TO_UINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   544
    return function_word_to_uint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   545
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   546
if (!strcasecmp(function_name->value, "WORD_TO_LREAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   547
    return function_word_to_lreal;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   548
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   549
if (!strcasecmp(function_name->value, "WORD_TO_BYTE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   550
    return function_word_to_byte;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   551
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   552
if (!strcasecmp(function_name->value, "WORD_TO_USINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   553
    return function_word_to_usint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   554
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   555
if (!strcasecmp(function_name->value, "WORD_TO_ULINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   556
    return function_word_to_ulint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   557
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   558
if (!strcasecmp(function_name->value, "WORD_TO_BOOL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   559
    return function_word_to_bool;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   560
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   561
if (!strcasecmp(function_name->value, "WORD_TO_TIME"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   562
    return function_word_to_time;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   563
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   564
if (!strcasecmp(function_name->value, "WORD_TO_INT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   565
    return function_word_to_int;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   566
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   567
if (!strcasecmp(function_name->value, "STRING_TO_REAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   568
    return function_string_to_real;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   569
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   570
if (!strcasecmp(function_name->value, "STRING_TO_SINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   571
    return function_string_to_sint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   572
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   573
if (!strcasecmp(function_name->value, "STRING_TO_LINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   574
    return function_string_to_lint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   575
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   576
if (!strcasecmp(function_name->value, "STRING_TO_DINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   577
    return function_string_to_dint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   578
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   579
if (!strcasecmp(function_name->value, "STRING_TO_DATE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   580
    return function_string_to_date;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   581
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   582
if (!strcasecmp(function_name->value, "STRING_TO_DWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   583
    return function_string_to_dword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   584
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   585
if (!strcasecmp(function_name->value, "STRING_TO_DT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   586
    return function_string_to_dt;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   587
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   588
if (!strcasecmp(function_name->value, "STRING_TO_TOD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   589
    return function_string_to_tod;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   590
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   591
if (!strcasecmp(function_name->value, "STRING_TO_UDINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   592
    return function_string_to_udint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   593
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   594
if (!strcasecmp(function_name->value, "STRING_TO_WORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   595
    return function_string_to_word;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   596
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   597
if (!strcasecmp(function_name->value, "STRING_TO_LWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   598
    return function_string_to_lword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   599
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   600
if (!strcasecmp(function_name->value, "STRING_TO_UINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   601
    return function_string_to_uint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   602
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   603
if (!strcasecmp(function_name->value, "STRING_TO_LREAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   604
    return function_string_to_lreal;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   605
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   606
if (!strcasecmp(function_name->value, "STRING_TO_BYTE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   607
    return function_string_to_byte;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   608
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   609
if (!strcasecmp(function_name->value, "STRING_TO_USINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   610
    return function_string_to_usint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   611
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   612
if (!strcasecmp(function_name->value, "STRING_TO_ULINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   613
    return function_string_to_ulint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   614
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   615
if (!strcasecmp(function_name->value, "STRING_TO_BOOL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   616
    return function_string_to_bool;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   617
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   618
if (!strcasecmp(function_name->value, "STRING_TO_TIME"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   619
    return function_string_to_time;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   620
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   621
if (!strcasecmp(function_name->value, "STRING_TO_INT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   622
    return function_string_to_int;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   623
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   624
if (!strcasecmp(function_name->value, "LWORD_TO_REAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   625
    return function_lword_to_real;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   626
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   627
if (!strcasecmp(function_name->value, "LWORD_TO_SINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   628
    return function_lword_to_sint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   629
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   630
if (!strcasecmp(function_name->value, "LWORD_TO_LINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   631
    return function_lword_to_lint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   632
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   633
if (!strcasecmp(function_name->value, "LWORD_TO_DINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   634
    return function_lword_to_dint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   635
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   636
if (!strcasecmp(function_name->value, "LWORD_TO_DATE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   637
    return function_lword_to_date;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   638
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   639
if (!strcasecmp(function_name->value, "LWORD_TO_DWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   640
    return function_lword_to_dword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   641
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   642
if (!strcasecmp(function_name->value, "LWORD_TO_DT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   643
    return function_lword_to_dt;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   644
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   645
if (!strcasecmp(function_name->value, "LWORD_TO_TOD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   646
    return function_lword_to_tod;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   647
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   648
if (!strcasecmp(function_name->value, "LWORD_TO_UDINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   649
    return function_lword_to_udint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   650
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   651
if (!strcasecmp(function_name->value, "LWORD_TO_WORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   652
    return function_lword_to_word;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   653
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   654
if (!strcasecmp(function_name->value, "LWORD_TO_STRING"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   655
    return function_lword_to_string;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   656
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   657
if (!strcasecmp(function_name->value, "LWORD_TO_UINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   658
    return function_lword_to_uint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   659
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   660
if (!strcasecmp(function_name->value, "LWORD_TO_LREAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   661
    return function_lword_to_lreal;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   662
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   663
if (!strcasecmp(function_name->value, "LWORD_TO_BYTE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   664
    return function_lword_to_byte;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   665
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   666
if (!strcasecmp(function_name->value, "LWORD_TO_USINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   667
    return function_lword_to_usint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   668
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   669
if (!strcasecmp(function_name->value, "LWORD_TO_ULINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   670
    return function_lword_to_ulint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   671
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   672
if (!strcasecmp(function_name->value, "LWORD_TO_BOOL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   673
    return function_lword_to_bool;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   674
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   675
if (!strcasecmp(function_name->value, "LWORD_TO_TIME"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   676
    return function_lword_to_time;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   677
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   678
if (!strcasecmp(function_name->value, "LWORD_TO_INT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   679
    return function_lword_to_int;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   680
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   681
if (!strcasecmp(function_name->value, "UINT_TO_REAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   682
    return function_uint_to_real;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   683
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   684
if (!strcasecmp(function_name->value, "UINT_TO_SINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   685
    return function_uint_to_sint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   686
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   687
if (!strcasecmp(function_name->value, "UINT_TO_LINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   688
    return function_uint_to_lint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   689
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   690
if (!strcasecmp(function_name->value, "UINT_TO_DINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   691
    return function_uint_to_dint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   692
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   693
if (!strcasecmp(function_name->value, "UINT_TO_DATE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   694
    return function_uint_to_date;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   695
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   696
if (!strcasecmp(function_name->value, "UINT_TO_DWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   697
    return function_uint_to_dword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   698
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   699
if (!strcasecmp(function_name->value, "UINT_TO_DT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   700
    return function_uint_to_dt;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   701
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   702
if (!strcasecmp(function_name->value, "UINT_TO_TOD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   703
    return function_uint_to_tod;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   704
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   705
if (!strcasecmp(function_name->value, "UINT_TO_UDINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   706
    return function_uint_to_udint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   707
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   708
if (!strcasecmp(function_name->value, "UINT_TO_WORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   709
    return function_uint_to_word;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   710
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   711
if (!strcasecmp(function_name->value, "UINT_TO_STRING"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   712
    return function_uint_to_string;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   713
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   714
if (!strcasecmp(function_name->value, "UINT_TO_LWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   715
    return function_uint_to_lword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   716
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   717
if (!strcasecmp(function_name->value, "UINT_TO_LREAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   718
    return function_uint_to_lreal;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   719
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   720
if (!strcasecmp(function_name->value, "UINT_TO_BYTE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   721
    return function_uint_to_byte;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   722
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   723
if (!strcasecmp(function_name->value, "UINT_TO_USINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   724
    return function_uint_to_usint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   725
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   726
if (!strcasecmp(function_name->value, "UINT_TO_ULINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   727
    return function_uint_to_ulint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   728
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   729
if (!strcasecmp(function_name->value, "UINT_TO_BOOL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   730
    return function_uint_to_bool;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   731
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   732
if (!strcasecmp(function_name->value, "UINT_TO_TIME"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   733
    return function_uint_to_time;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   734
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   735
if (!strcasecmp(function_name->value, "UINT_TO_INT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   736
    return function_uint_to_int;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   737
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   738
if (!strcasecmp(function_name->value, "LREAL_TO_REAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   739
    return function_lreal_to_real;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   740
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   741
if (!strcasecmp(function_name->value, "LREAL_TO_SINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   742
    return function_lreal_to_sint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   743
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   744
if (!strcasecmp(function_name->value, "LREAL_TO_LINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   745
    return function_lreal_to_lint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   746
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   747
if (!strcasecmp(function_name->value, "LREAL_TO_DINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   748
    return function_lreal_to_dint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   749
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   750
if (!strcasecmp(function_name->value, "LREAL_TO_DATE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   751
    return function_lreal_to_date;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   752
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   753
if (!strcasecmp(function_name->value, "LREAL_TO_DWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   754
    return function_lreal_to_dword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   755
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   756
if (!strcasecmp(function_name->value, "LREAL_TO_DT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   757
    return function_lreal_to_dt;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   758
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   759
if (!strcasecmp(function_name->value, "LREAL_TO_TOD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   760
    return function_lreal_to_tod;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   761
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   762
if (!strcasecmp(function_name->value, "LREAL_TO_UDINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   763
    return function_lreal_to_udint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   764
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   765
if (!strcasecmp(function_name->value, "LREAL_TO_WORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   766
    return function_lreal_to_word;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   767
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   768
if (!strcasecmp(function_name->value, "LREAL_TO_STRING"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   769
    return function_lreal_to_string;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   770
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   771
if (!strcasecmp(function_name->value, "LREAL_TO_LWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   772
    return function_lreal_to_lword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   773
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   774
if (!strcasecmp(function_name->value, "LREAL_TO_UINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   775
    return function_lreal_to_uint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   776
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   777
if (!strcasecmp(function_name->value, "LREAL_TO_BYTE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   778
    return function_lreal_to_byte;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   779
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   780
if (!strcasecmp(function_name->value, "LREAL_TO_USINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   781
    return function_lreal_to_usint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   782
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   783
if (!strcasecmp(function_name->value, "LREAL_TO_ULINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   784
    return function_lreal_to_ulint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   785
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   786
if (!strcasecmp(function_name->value, "LREAL_TO_BOOL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   787
    return function_lreal_to_bool;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   788
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   789
if (!strcasecmp(function_name->value, "LREAL_TO_TIME"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   790
    return function_lreal_to_time;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   791
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   792
if (!strcasecmp(function_name->value, "LREAL_TO_INT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   793
    return function_lreal_to_int;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   794
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   795
if (!strcasecmp(function_name->value, "BYTE_TO_REAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   796
    return function_byte_to_real;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   797
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   798
if (!strcasecmp(function_name->value, "BYTE_TO_SINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   799
    return function_byte_to_sint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   800
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   801
if (!strcasecmp(function_name->value, "BYTE_TO_LINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   802
    return function_byte_to_lint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   803
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   804
if (!strcasecmp(function_name->value, "BYTE_TO_DINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   805
    return function_byte_to_dint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   806
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   807
if (!strcasecmp(function_name->value, "BYTE_TO_DATE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   808
    return function_byte_to_date;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   809
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   810
if (!strcasecmp(function_name->value, "BYTE_TO_DWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   811
    return function_byte_to_dword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   812
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   813
if (!strcasecmp(function_name->value, "BYTE_TO_DT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   814
    return function_byte_to_dt;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   815
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   816
if (!strcasecmp(function_name->value, "BYTE_TO_TOD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   817
    return function_byte_to_tod;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   818
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   819
if (!strcasecmp(function_name->value, "BYTE_TO_UDINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   820
    return function_byte_to_udint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   821
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   822
if (!strcasecmp(function_name->value, "BYTE_TO_WORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   823
    return function_byte_to_word;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   824
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   825
if (!strcasecmp(function_name->value, "BYTE_TO_STRING"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   826
    return function_byte_to_string;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   827
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   828
if (!strcasecmp(function_name->value, "BYTE_TO_LWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   829
    return function_byte_to_lword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   830
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   831
if (!strcasecmp(function_name->value, "BYTE_TO_UINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   832
    return function_byte_to_uint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   833
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   834
if (!strcasecmp(function_name->value, "BYTE_TO_LREAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   835
    return function_byte_to_lreal;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   836
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   837
if (!strcasecmp(function_name->value, "BYTE_TO_USINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   838
    return function_byte_to_usint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   839
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   840
if (!strcasecmp(function_name->value, "BYTE_TO_ULINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   841
    return function_byte_to_ulint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   842
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   843
if (!strcasecmp(function_name->value, "BYTE_TO_BOOL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   844
    return function_byte_to_bool;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   845
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   846
if (!strcasecmp(function_name->value, "BYTE_TO_TIME"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   847
    return function_byte_to_time;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   848
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   849
if (!strcasecmp(function_name->value, "BYTE_TO_INT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   850
    return function_byte_to_int;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   851
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   852
if (!strcasecmp(function_name->value, "USINT_TO_REAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   853
    return function_usint_to_real;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   854
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   855
if (!strcasecmp(function_name->value, "USINT_TO_SINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   856
    return function_usint_to_sint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   857
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   858
if (!strcasecmp(function_name->value, "USINT_TO_LINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   859
    return function_usint_to_lint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   860
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   861
if (!strcasecmp(function_name->value, "USINT_TO_DINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   862
    return function_usint_to_dint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   863
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   864
if (!strcasecmp(function_name->value, "USINT_TO_DATE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   865
    return function_usint_to_date;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   866
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   867
if (!strcasecmp(function_name->value, "USINT_TO_DWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   868
    return function_usint_to_dword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   869
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   870
if (!strcasecmp(function_name->value, "USINT_TO_DT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   871
    return function_usint_to_dt;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   872
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   873
if (!strcasecmp(function_name->value, "USINT_TO_TOD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   874
    return function_usint_to_tod;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   875
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   876
if (!strcasecmp(function_name->value, "USINT_TO_UDINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   877
    return function_usint_to_udint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   878
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   879
if (!strcasecmp(function_name->value, "USINT_TO_WORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   880
    return function_usint_to_word;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   881
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   882
if (!strcasecmp(function_name->value, "USINT_TO_STRING"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   883
    return function_usint_to_string;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   884
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   885
if (!strcasecmp(function_name->value, "USINT_TO_LWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   886
    return function_usint_to_lword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   887
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   888
if (!strcasecmp(function_name->value, "USINT_TO_UINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   889
    return function_usint_to_uint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   890
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   891
if (!strcasecmp(function_name->value, "USINT_TO_LREAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   892
    return function_usint_to_lreal;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   893
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   894
if (!strcasecmp(function_name->value, "USINT_TO_BYTE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   895
    return function_usint_to_byte;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   896
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   897
if (!strcasecmp(function_name->value, "USINT_TO_ULINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   898
    return function_usint_to_ulint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   899
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   900
if (!strcasecmp(function_name->value, "USINT_TO_BOOL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   901
    return function_usint_to_bool;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   902
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   903
if (!strcasecmp(function_name->value, "USINT_TO_TIME"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   904
    return function_usint_to_time;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   905
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   906
if (!strcasecmp(function_name->value, "USINT_TO_INT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   907
    return function_usint_to_int;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   908
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   909
if (!strcasecmp(function_name->value, "ULINT_TO_REAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   910
    return function_ulint_to_real;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   911
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   912
if (!strcasecmp(function_name->value, "ULINT_TO_SINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   913
    return function_ulint_to_sint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   914
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   915
if (!strcasecmp(function_name->value, "ULINT_TO_LINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   916
    return function_ulint_to_lint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   917
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   918
if (!strcasecmp(function_name->value, "ULINT_TO_DINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   919
    return function_ulint_to_dint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   920
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   921
if (!strcasecmp(function_name->value, "ULINT_TO_DATE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   922
    return function_ulint_to_date;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   923
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   924
if (!strcasecmp(function_name->value, "ULINT_TO_DWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   925
    return function_ulint_to_dword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   926
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   927
if (!strcasecmp(function_name->value, "ULINT_TO_DT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   928
    return function_ulint_to_dt;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   929
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   930
if (!strcasecmp(function_name->value, "ULINT_TO_TOD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   931
    return function_ulint_to_tod;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   932
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   933
if (!strcasecmp(function_name->value, "ULINT_TO_UDINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   934
    return function_ulint_to_udint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   935
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   936
if (!strcasecmp(function_name->value, "ULINT_TO_WORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   937
    return function_ulint_to_word;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   938
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   939
if (!strcasecmp(function_name->value, "ULINT_TO_STRING"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   940
    return function_ulint_to_string;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   941
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   942
if (!strcasecmp(function_name->value, "ULINT_TO_LWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   943
    return function_ulint_to_lword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   944
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   945
if (!strcasecmp(function_name->value, "ULINT_TO_UINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   946
    return function_ulint_to_uint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   947
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   948
if (!strcasecmp(function_name->value, "ULINT_TO_LREAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   949
    return function_ulint_to_lreal;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   950
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   951
if (!strcasecmp(function_name->value, "ULINT_TO_BYTE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   952
    return function_ulint_to_byte;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   953
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   954
if (!strcasecmp(function_name->value, "ULINT_TO_USINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   955
    return function_ulint_to_usint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   956
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   957
if (!strcasecmp(function_name->value, "ULINT_TO_BOOL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   958
    return function_ulint_to_bool;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   959
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   960
if (!strcasecmp(function_name->value, "ULINT_TO_TIME"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   961
    return function_ulint_to_time;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   962
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   963
if (!strcasecmp(function_name->value, "ULINT_TO_INT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   964
    return function_ulint_to_int;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   965
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   966
if (!strcasecmp(function_name->value, "BOOL_TO_REAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   967
    return function_bool_to_real;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   968
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   969
if (!strcasecmp(function_name->value, "BOOL_TO_SINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   970
    return function_bool_to_sint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   971
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   972
if (!strcasecmp(function_name->value, "BOOL_TO_LINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   973
    return function_bool_to_lint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   974
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   975
if (!strcasecmp(function_name->value, "BOOL_TO_DINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   976
    return function_bool_to_dint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   977
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   978
if (!strcasecmp(function_name->value, "BOOL_TO_DATE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   979
    return function_bool_to_date;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   980
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   981
if (!strcasecmp(function_name->value, "BOOL_TO_DWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   982
    return function_bool_to_dword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   983
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   984
if (!strcasecmp(function_name->value, "BOOL_TO_DT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   985
    return function_bool_to_dt;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   986
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   987
if (!strcasecmp(function_name->value, "BOOL_TO_TOD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   988
    return function_bool_to_tod;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   989
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   990
if (!strcasecmp(function_name->value, "BOOL_TO_UDINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   991
    return function_bool_to_udint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   992
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   993
if (!strcasecmp(function_name->value, "BOOL_TO_WORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   994
    return function_bool_to_word;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   995
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   996
if (!strcasecmp(function_name->value, "BOOL_TO_STRING"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   997
    return function_bool_to_string;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   998
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
   999
if (!strcasecmp(function_name->value, "BOOL_TO_LWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1000
    return function_bool_to_lword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1001
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1002
if (!strcasecmp(function_name->value, "BOOL_TO_UINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1003
    return function_bool_to_uint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1004
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1005
if (!strcasecmp(function_name->value, "BOOL_TO_LREAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1006
    return function_bool_to_lreal;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1007
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1008
if (!strcasecmp(function_name->value, "BOOL_TO_BYTE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1009
    return function_bool_to_byte;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1010
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1011
if (!strcasecmp(function_name->value, "BOOL_TO_USINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1012
    return function_bool_to_usint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1013
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1014
if (!strcasecmp(function_name->value, "BOOL_TO_ULINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1015
    return function_bool_to_ulint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1016
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1017
if (!strcasecmp(function_name->value, "BOOL_TO_TIME"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1018
    return function_bool_to_time;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1019
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1020
if (!strcasecmp(function_name->value, "BOOL_TO_INT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1021
    return function_bool_to_int;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1022
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1023
if (!strcasecmp(function_name->value, "TIME_TO_REAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1024
    return function_time_to_real;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1025
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1026
if (!strcasecmp(function_name->value, "TIME_TO_SINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1027
    return function_time_to_sint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1028
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1029
if (!strcasecmp(function_name->value, "TIME_TO_LINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1030
    return function_time_to_lint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1031
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1032
if (!strcasecmp(function_name->value, "TIME_TO_DINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1033
    return function_time_to_dint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1034
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1035
if (!strcasecmp(function_name->value, "TIME_TO_DWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1036
    return function_time_to_dword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1037
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1038
if (!strcasecmp(function_name->value, "TIME_TO_UDINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1039
    return function_time_to_udint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1040
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1041
if (!strcasecmp(function_name->value, "TIME_TO_WORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1042
    return function_time_to_word;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1043
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1044
if (!strcasecmp(function_name->value, "TIME_TO_STRING"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1045
    return function_time_to_string;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1046
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1047
if (!strcasecmp(function_name->value, "TIME_TO_LWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1048
    return function_time_to_lword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1049
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1050
if (!strcasecmp(function_name->value, "TIME_TO_UINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1051
    return function_time_to_uint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1052
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1053
if (!strcasecmp(function_name->value, "TIME_TO_LREAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1054
    return function_time_to_lreal;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1055
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1056
if (!strcasecmp(function_name->value, "TIME_TO_BYTE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1057
    return function_time_to_byte;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1058
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1059
if (!strcasecmp(function_name->value, "TIME_TO_USINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1060
    return function_time_to_usint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1061
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1062
if (!strcasecmp(function_name->value, "TIME_TO_ULINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1063
    return function_time_to_ulint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1064
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1065
if (!strcasecmp(function_name->value, "TIME_TO_INT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1066
    return function_time_to_int;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1067
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1068
if (!strcasecmp(function_name->value, "INT_TO_REAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1069
    return function_int_to_real;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1070
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1071
if (!strcasecmp(function_name->value, "INT_TO_SINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1072
    return function_int_to_sint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1073
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1074
if (!strcasecmp(function_name->value, "INT_TO_LINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1075
    return function_int_to_lint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1076
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1077
if (!strcasecmp(function_name->value, "INT_TO_DINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1078
    return function_int_to_dint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1079
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1080
if (!strcasecmp(function_name->value, "INT_TO_DATE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1081
    return function_int_to_date;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1082
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1083
if (!strcasecmp(function_name->value, "INT_TO_DWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1084
    return function_int_to_dword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1085
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1086
if (!strcasecmp(function_name->value, "INT_TO_DT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1087
    return function_int_to_dt;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1088
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1089
if (!strcasecmp(function_name->value, "INT_TO_TOD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1090
    return function_int_to_tod;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1091
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1092
if (!strcasecmp(function_name->value, "INT_TO_UDINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1093
    return function_int_to_udint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1094
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1095
if (!strcasecmp(function_name->value, "INT_TO_WORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1096
    return function_int_to_word;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1097
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1098
if (!strcasecmp(function_name->value, "INT_TO_STRING"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1099
    return function_int_to_string;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1100
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1101
if (!strcasecmp(function_name->value, "INT_TO_LWORD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1102
    return function_int_to_lword;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1103
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1104
if (!strcasecmp(function_name->value, "INT_TO_UINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1105
    return function_int_to_uint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1106
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1107
if (!strcasecmp(function_name->value, "INT_TO_LREAL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1108
    return function_int_to_lreal;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1109
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1110
if (!strcasecmp(function_name->value, "INT_TO_BYTE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1111
    return function_int_to_byte;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1112
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1113
if (!strcasecmp(function_name->value, "INT_TO_USINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1114
    return function_int_to_usint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1115
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1116
if (!strcasecmp(function_name->value, "INT_TO_ULINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1117
    return function_int_to_ulint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1118
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1119
if (!strcasecmp(function_name->value, "INT_TO_BOOL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1120
    return function_int_to_bool;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1121
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1122
if (!strcasecmp(function_name->value, "INT_TO_TIME"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1123
    return function_int_to_time;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1124
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1125
if (!strcasecmp(function_name->value, "TRUNC"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1126
    return function_trunc;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1127
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1128
if (!strcasecmp(function_name->value, "BCD_TO_UDINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1129
    return function_bcd_to_udint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1130
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1131
if (!strcasecmp(function_name->value, "BCD_TO_UINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1132
    return function_bcd_to_uint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1133
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1134
if (!strcasecmp(function_name->value, "BCD_TO_ULINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1135
    return function_bcd_to_ulint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1136
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1137
if (!strcasecmp(function_name->value, "BCD_TO_USINT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1138
    return function_bcd_to_usint;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1139
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1140
if (!strcasecmp(function_name->value, "UDINT_TO_BCD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1141
    return function_udint_to_bcd;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1142
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1143
if (!strcasecmp(function_name->value, "UINT_TO_BCD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1144
    return function_uint_to_bcd;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1145
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1146
if (!strcasecmp(function_name->value, "USINT_TO_BCD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1147
    return function_usint_to_bcd;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1148
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1149
if (!strcasecmp(function_name->value, "ULINT_TO_BCD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1150
    return function_ulint_to_bcd;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1151
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1152
if (!strcasecmp(function_name->value, "DATE_AND_TIME_TO_TIME_OF_DAY"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1153
    return function_date_and_time_to_time_of_day;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1154
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1155
if (!strcasecmp(function_name->value, "DATE_AND_TIME_TO_DATE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1156
    return function_date_and_time_to_date;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1157
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1158
if (!strcasecmp(function_name->value, "ABS"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1159
    return function_abs;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1160
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1161
if (!strcasecmp(function_name->value, "SQRT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1162
    return function_sqrt;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1163
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1164
if (!strcasecmp(function_name->value, "LN"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1165
    return function_ln;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1166
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1167
if (!strcasecmp(function_name->value, "LOG"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1168
    return function_log;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1169
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1170
if (!strcasecmp(function_name->value, "EXP"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1171
    return function_exp;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1172
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1173
if (!strcasecmp(function_name->value, "SIN"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1174
    return function_sin;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1175
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1176
if (!strcasecmp(function_name->value, "COS"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1177
    return function_cos;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1178
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1179
if (!strcasecmp(function_name->value, "TAN"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1180
    return function_tan;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1181
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1182
if (!strcasecmp(function_name->value, "ASIN"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1183
    return function_asin;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1184
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1185
if (!strcasecmp(function_name->value, "ACOS"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1186
    return function_acos;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1187
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1188
if (!strcasecmp(function_name->value, "ATAN"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1189
    return function_atan;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1190
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1191
if (!strcasecmp(function_name->value, "ADD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1192
    return function_add;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1193
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1194
if (!strcasecmp(function_name->value, "MUL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1195
    return function_mul;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1196
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1197
if (!strcasecmp(function_name->value, "SUB"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1198
    return function_sub;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1199
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1200
if (!strcasecmp(function_name->value, "DIV"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1201
    return function_div;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1202
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1203
if (!strcasecmp(function_name->value, "MOD"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1204
    return function_mod;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1205
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1206
if (!strcasecmp(function_name->value, "EXPT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1207
    return function_expt;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1208
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1209
if (!strcasecmp(function_name->value, "MOVE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1210
    return function_move;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1211
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1212
if (!strcasecmp(function_name->value, "SHL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1213
    return function_shl;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1214
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1215
if (!strcasecmp(function_name->value, "SHR"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1216
    return function_shr;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1217
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1218
if (!strcasecmp(function_name->value, "ROR"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1219
    return function_ror;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1220
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1221
if (!strcasecmp(function_name->value, "ROL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1222
    return function_rol;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1223
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1224
if (!strcasecmp(function_name->value, "AND"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1225
    return function_and;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1226
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1227
if (!strcasecmp(function_name->value, "OR"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1228
    return function_or;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1229
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1230
if (!strcasecmp(function_name->value, "XOR"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1231
    return function_xor;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1232
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1233
if (!strcasecmp(function_name->value, "NOT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1234
    return function_not;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1235
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1236
if (!strcasecmp(function_name->value, "SEL"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1237
    return function_sel;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1238
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1239
if (!strcasecmp(function_name->value, "MAX"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1240
    return function_max;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1241
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1242
if (!strcasecmp(function_name->value, "MIN"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1243
    return function_min;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1244
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1245
if (!strcasecmp(function_name->value, "LIMIT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1246
    return function_limit;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1247
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1248
if (!strcasecmp(function_name->value, "MUX"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1249
    return function_mux;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1250
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1251
if (!strcasecmp(function_name->value, "GT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1252
    return function_gt;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1253
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1254
if (!strcasecmp(function_name->value, "GE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1255
    return function_ge;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1256
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1257
if (!strcasecmp(function_name->value, "EQ"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1258
    return function_eq;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1259
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1260
if (!strcasecmp(function_name->value, "LT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1261
    return function_lt;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1262
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1263
if (!strcasecmp(function_name->value, "LE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1264
    return function_le;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1265
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1266
if (!strcasecmp(function_name->value, "NE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1267
    return function_ne;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1268
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1269
if (!strcasecmp(function_name->value, "LEN"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1270
    return function_len;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1271
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1272
if (!strcasecmp(function_name->value, "LEFT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1273
    return function_left;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1274
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1275
if (!strcasecmp(function_name->value, "RIGHT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1276
    return function_right;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1277
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1278
if (!strcasecmp(function_name->value, "MID"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1279
    return function_mid;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1280
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1281
if (!strcasecmp(function_name->value, "CONCAT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1282
    return function_concat;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1283
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1284
if (!strcasecmp(function_name->value, "INSERT"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1285
    return function_insert;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1286
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1287
if (!strcasecmp(function_name->value, "DELETE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1288
    return function_delete;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1289
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1290
if (!strcasecmp(function_name->value, "REPLACE"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1291
    return function_replace;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1292
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1293
if (!strcasecmp(function_name->value, "FIND"))
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1294
    return function_find;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1295
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1296
    else return function_none;
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1297
}
38d6eb056260 Moving absyntax utility files out from stage4/generate_c
mario
parents:
diff changeset
  1298