stage4/generate_c/search_varfb_instance_type.cc
changeset 175 dadda1b5401e
parent 160 59d58f5e6caa
equal deleted inserted replaced
174:f648065fb66e 175:dadda1b5401e
    75       
    75       
    76       /* Now we try to find the variable instance declaration, to determine its type... */
    76       /* Now we try to find the variable instance declaration, to determine its type... */
    77       symbol_c *var_decl = search_var_instance_decl.get_decl(var_name_part);
    77       symbol_c *var_decl = search_var_instance_decl.get_decl(var_name_part);
    78       if (NULL == var_decl) {
    78       if (NULL == var_decl) {
    79         /* variable instance declaration not found! */
    79         /* variable instance declaration not found! */
    80  	      return NULL;
    80  	      ERROR;
    81       }
    81       }
    82 
    82 
    83       /* if it is a struct or function block, we must search the type
    83       /* if it is a struct or function block, we must search the type
    84        * of the struct or function block member.
    84        * of the struct or function block member.
    85        * This is done by this class visiting the var_decl.
    85        * This is done by this class visiting the var_decl.