model_server/xref/src/Xref.h.cxx
// This function should be called only on a home project for which the pmod files did not exist
This function should be called only on a home project for which the pmod files did not exist
This function should be called only on a home project for which the pmod files did not exist
void Xref::make_real(char const *xref_file)
{
    if (!unreal_flag) return;
    if (get_lxref (1)) { 
	delete lxref;
	lxref = NULL;
    }
    xref_name = xref_file;
    genString sym_file;
    genString ind_file;
    genString link_file;
    Xref::sym_file(xref_file, sym_file);
    Xref::ind_file(xref_file, ind_file);
    Xref::link_file(xref_file, link_file);
    lxref = new XrefTable(this, sym_file, ind_file, link_file, 0);
    if (lxref && lxref->get_header() == 0) {
        delete lxref;
        lxref = NULL;
    }
    perm_flag = 0 ;
    unreal_flag = 0;  
    int test = OS_dependent::access(sym_file,W_OK);	
    writable_on_disk = lxref ? !((test == 0) || (errno == ENOENT)) : 1;
}
void Xref :: make_real ( char const * xref_file ) { if ( ! unreal_flag ) return ; if ( get_lxref ( 1 ) ) { delete lxref ; lxref = NULL ; } xref_name = xref_file ; genString sym_file ; genString ind_file ; genString link_file ; Xref :: sym_file ( xref_file , sym_file ) ; Xref :: ind_file ( xref_file , ind_file ) ; Xref :: link_file ( xref_file , link_file ) ; lxref = new XrefTable ( this , sym_file , ind_file , link_file , 0 ) ; if ( lxref && lxref -> get_header ( ) == 0 ) { delete lxref ; lxref = NULL ; } perm_flag = 0 ; unreal_flag = 0 ; int test = OS_dependent :: access ( sym_file , W_OK ) ; writable_on_disk = lxref ? ! ( ( test == 0 ) || ( errno == ENOENT ) ) : 1 ; }
This function should be called only on a home project for which the pmod files did not exist
This function should be called only on a home project for which the pmod files did not exist
//  && lxref->get_header() == 0) { //writable, real file  