Show
Ignore:
Timestamp:
14/01/10 15:10:39 (2 years ago)
Author:
westram
Message:
  • removed useless variable 'species_read'
  • fixed overflow if too many missing species in configuration
    • shortened error message (show only first 200 missing species)
  • moved some duplicated code into ED4_init_notFoundMessage / ED4_finish_and_show_notFoundMessage
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/EDIT4/ed4_defs.hxx

    r6284 r6353  
    3737extern int SEQ_TERM_TEXT_YOFFSET; 
    3838 
    39 extern int            MAXSEQUENCECHARACTERLENGTH; // greatest # of characters in a sequence string terminal 
    40 extern int            MAXSPECIESWIDTH; 
    41 extern int            MAXINFOWIDTH; 
    42 extern long           ED4_counter; 
    43 extern long           all_found; // nr of species which haven't been found 
    44 extern long           species_read; // nr of species read; important during loading 
    45 extern GBS_strstruct *not_found_message; 
    46 extern long           max_seq_terminal_length; // global maximum of sequence terminal length 
    47 extern ED4_EDITMODI   awar_edit_mode; 
    48 extern long           awar_edit_direction; 
    49 extern bool           move_cursor; //only needed for editing in consensus 
    50 extern bool           DRAW; 
    51 extern bool           last_window_reached; //only needed for refreshing all windows 
     39extern int  MAXSEQUENCECHARACTERLENGTH;             // greatest # of characters in a sequence string terminal 
     40extern int  MAXSPECIESWIDTH; 
     41extern int  MAXINFOWIDTH; 
     42extern long ED4_counter; 
     43 
     44// use ED4_init_notFoundMessage and ED4_finish_and_show_notFoundMessage to 
     45// modify the following elements 
     46#define MAX_SHOWN_MISSING_SPECIES 200               // limit no of missing species/data printed into not_found_message 
     47extern long           not_found_counter;            // nr of species which haven't been found 
     48extern GBS_strstruct *not_found_message;            // error message containing (some) missing/unloadable species 
     49 
     50extern long         max_seq_terminal_length;        // global maximum of sequence terminal length 
     51extern ED4_EDITMODI awar_edit_mode; 
     52extern long         awar_edit_direction; 
     53extern bool         move_cursor;                    //only needed for editing in consensus 
     54extern bool         DRAW; 
     55extern bool         last_window_reached;            //only needed for refreshing all windows 
    5256 
    5357// globally used defines and flags