1045 |
1045 |
1046 /* formal_param_list -> may be NULL ! */ |
1046 /* formal_param_list -> may be NULL ! */ |
1047 /* nonformal_param_list -> may be NULL ! */ |
1047 /* nonformal_param_list -> may be NULL ! */ |
1048 /* NOTE: The parameter 'called_function_declaration' is used to pass data between the stage 3 and stage 4. |
1048 /* NOTE: The parameter 'called_function_declaration' is used to pass data between the stage 3 and stage 4. |
1049 * The IEC 61131-3 standard allows for overloaded standard functions. This means that some |
1049 * The IEC 61131-3 standard allows for overloaded standard functions. This means that some |
1050 * function calls are not compeletely defined by the name of the function being called, |
1050 * function calls are not completely defined by the name of the function being called, |
1051 * and need to be disambiguated with using the data types of the parameters being passed. |
1051 * and need to be disambiguated with using the data types of the parameters being passed. |
1052 * Stage 3 does this to verify semantic correctnes. |
1052 * Stage 3 does this to verify semantic correctness. |
1053 * Stage 4 also needs to do this in order to determine which function to call. |
1053 * Stage 4 also needs to do this in order to determine which function to call. |
1054 * It does not make sense to determine the exact function being called twice (once in stage 3, |
1054 * It does not make sense to determine the exact function being called twice (once in stage 3, |
1055 * and again in stage 4), so stage 3 will store this infor in the parameter called_function_declaration |
1055 * and again in stage 4), so stage 3 will store this info in the parameter called_function_declaration |
1056 * for stage 4 to use it later on. |
1056 * for stage 4 to use it later on. |
1057 */ |
1057 */ |
1058 SYM_REF3(function_invocation_c, function_name, formal_param_list, nonformal_param_list, symbol_c *called_function_declaration; int extensible_param_count;) |
1058 SYM_REF3(function_invocation_c, function_name, formal_param_list, nonformal_param_list, symbol_c *called_function_declaration; int extensible_param_count;) |
1059 |
1059 |
1060 |
1060 |