Show
Ignore:
Timestamp:
23/11/09 08:54:41 (3 years ago)
Author:
westram
Message:
  • merged 6262-6267
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/clusters/SL/FAST_ALIGNER/fast_aligner.cxx

    r6141 r6269  
    132132// -------------------------------------------------------------------------------- 
    133133 
    134 static inline GB_ERROR species_not_found(GB_CSTR species_name) { 
    135     return GB_export_errorf("No species '%s' found!", species_name); 
    136 } 
    137  
    138 static GB_ERROR reverseComplement(GBDATA *gb_species, GB_CSTR ali, int max_protection) { 
     134ATTRIBUTED(__ATTR__USERESULT,  
     135           static inline GB_ERROR species_not_found(GB_CSTR species_name)) 
     136{ 
     137    return GBS_global_string("No species '%s' found!", species_name); 
     138} 
     139 
     140ATTRIBUTED(__ATTR__USERESULT,  
     141           static GB_ERROR reverseComplement(GBDATA *gb_species, GB_CSTR ali, int max_protection)) 
     142{ 
    139143    GBDATA *gbd = GBT_read_sequence(gb_species, ali); 
    140144    GB_ERROR error = 0; 
    141145 
    142146    if (!gbd) { 
    143         error = GB_export_errorf("No 'data' found for species '%s'", GBT_read_name(gb_species)); 
     147        error = GBS_global_string("No 'data' found for species '%s'", GBT_read_name(gb_species)); 
    144148    } 
    145149    else { 
     
    159163        } 
    160164        else { // protection error 
    161             error = GB_export_errorf("Cannot reverse-complement species '%s' because of protection level", GBT_read_name(gb_species)); 
     165            error = GBS_global_string("Cannot reverse-complement species '%s' because of protection level", GBT_read_name(gb_species)); 
    162166        } 
    163167 
     
    11291133    } 
    11301134    else { 
    1131         error = GB_export_errorf("No 'data' found for species '%s'", GBT_read_name(gb_species)); 
     1135        error = GBS_global_string("No 'data' found for species '%s'", GBT_read_name(gb_species)); 
    11321136        if (dataPtr) *dataPtr = NULL; // (user must not care to free data if we fail) 
    11331137    } 
     
    11391143} 
    11401144 
    1141 static GB_ERROR writeStringToAlignment(GBDATA *gb_species, GB_CSTR alignment, GB_CSTR data_name, GB_CSTR str, bool temporary) { 
     1145ATTRIBUTED(__ATTR__USERESULT,  
     1146           static GB_ERROR writeStringToAlignment(GBDATA *gb_species, GB_CSTR alignment, GB_CSTR data_name, GB_CSTR str, bool temporary)) 
     1147{ 
    11421148    GBDATA   *gb_ali  = GB_search(gb_species, alignment, GB_DB); 
    11431149    GB_ERROR  error   = NULL; 
     
    11501156    } 
    11511157    else { 
    1152         error = GB_export_errorf("Cannot create entry '%s' for '%s'", data_name, GBT_read_name(gb_species)); 
     1158        error = GBS_global_string("Cannot create entry '%s' for '%s'", data_name, GBT_read_name(gb_species)); 
    11531159    } 
    11541160 
     
    14981504            GBDATA *gbd = GBT_read_sequence(gb_toAlign, relSearch.pt_server_alignment); // use a different alignment for next relative search 
    14991505            if (!gbd) { 
    1500                 error = GB_export_errorf("Species '%s' has no data in alignment '%s'", GBT_read_name(gb_toAlign), relSearch.pt_server_alignment); 
     1506                error = GBS_global_string("Species '%s' has no data in alignment '%s'", GBT_read_name(gb_toAlign), relSearch.pt_server_alignment); 
    15011507            } 
    15021508            else { 
     
    22072213 
    22082214    if (wasNotAllowedToAlign>0) { 
    2209         const char *mess = GB_export_errorf("%i species were not aligned (because of protection level)", wasNotAllowedToAlign); 
     2215        const char *mess = GBS_global_string("%i species were not aligned (because of protection level)", wasNotAllowedToAlign); 
    22102216        aw_popup_ok(mess); 
    22112217    } 
     
    22132219    if (err_count) { 
    22142220        if (error) aw_message(error); 
    2215         error = GB_export_errorf("Aligner produced %i error%c", err_count, err_count==1 ? '\0' : 's'); 
     2221        error = GBS_global_string("Aligner produced %i error%c", err_count, err_count==1 ? '\0' : 's'); 
    22162222    } 
    22172223