stage3/visit_expression_type.hh
changeset 350 2c3c4dc34979
parent 323 d3f2ef59b310
child 360 f4ce1b1c2112
--- a/stage3/visit_expression_type.hh	Mon Jul 11 09:47:27 2011 +0100
+++ b/stage3/visit_expression_type.hh	Fri Jul 29 16:03:28 2011 +0100
@@ -190,10 +190,18 @@
     void check_il_fbcall(symbol_c *symbol, const char *input_operator);
     /* check the semantics of a FB or Function non-formal call */
     /* e.g. foo(1, 2, 3, 4);  */
-    void check_nonformal_call(symbol_c *f_call, symbol_c *f_decl, bool use_il_defvar = false);
+    /* If error_count pointer is NULL, print out error messages.
+     * If error_count pointer is != NULL, do not print out error messages, but tally up
+     * how many errors were found.
+     */
+    void check_nonformal_call(symbol_c *f_call, symbol_c *f_decl, bool use_il_defvar = false, int *error_count = NULL);
     /* check the semantics of a FB or Function formal call */
     /* e.g. foo(IN1 := 1, OUT1 =>x, EN := true);  */
-    void check_formal_call(symbol_c *f_call, symbol_c *f_decl);
+    /* If error_count pointer is NULL, print out error messages.
+     * If error_count pointer is != NULL, do not print out error messages, but tally up
+     * how many errors were found.
+     */
+    void check_formal_call(symbol_c *f_call, symbol_c *f_decl, int *error_count = NULL);
 
 
     void *compute_standard_function_default(function_invocation_c *st_symbol, il_formal_funct_call_c *il_symbol);