stage4/generate_c/generate_c_vardecl.cc
changeset 242 0036357a990f
parent 237 cece842c7417
child 279 c0453b7f99df
equal deleted inserted replaced
241:0ba6d614573e 242:0036357a990f
  1943       break;
  1943       break;
  1944 
  1944 
  1945     case constructorinit_vf:
  1945     case constructorinit_vf:
  1946       if (symbol->global_var_name != NULL) {
  1946       if (symbol->global_var_name != NULL) {
  1947     	s4o.print(nv->get());
  1947     	s4o.print(nv->get());
  1948     	s4o.print(s4o.indent_spaces);
       
  1949     	s4o.print(INIT_GLOBAL_LOCATED);
  1948     	s4o.print(INIT_GLOBAL_LOCATED);
  1950     	s4o.print("(");
  1949     	s4o.print("(");
  1951     	if (this->resource_name != NULL) {
  1950     	if (this->resource_name != NULL) {
  1952     	  this->resource_name->accept(*this);
  1951     	  this->resource_name->accept(*this);
  1953     	}
  1952     	}
  1958         print_retain();
  1957         print_retain();
  1959       	s4o.print(")");
  1958       	s4o.print(")");
  1960       }
  1959       }
  1961       if (this->current_var_init_symbol != NULL) {
  1960       if (this->current_var_init_symbol != NULL) {
  1962 	    s4o.print(nv->get());
  1961 	    s4o.print(nv->get());
  1963 	    s4o.print(s4o.indent_spaces);
       
  1964 	    s4o.print(INIT_GLOBAL);
  1962 	    s4o.print(INIT_GLOBAL);
  1965 	    s4o.print("(");
  1963 	    s4o.print("(");
  1966 	    if (symbol->global_var_name != NULL)
  1964 	    if (symbol->global_var_name != NULL)
  1967 		  symbol->global_var_name->accept(*this);
  1965 		  symbol->global_var_name->accept(*this);
  1968 	    else
  1966 	    else