Changeset 6806
- Timestamp:
- 08/09/10 11:41:12 (17 months ago)
- Location:
- branches/refactor
- Files:
-
- 1 added
- 6 modified
-
ARBDB/adlang1.cxx (modified) (2 diffs)
-
AWT/AWT_www.cxx (modified) (2 diffs)
-
SL/FAST_ALIGNER/fast_aligner.cxx (modified) (3 diffs)
-
SOURCE_TOOLS/generate_all_links.sh (modified) (2 diffs)
-
TEMPLATES/arb_defs.h (added)
-
TOOLS/arb_probe.cxx (modified) (5 diffs)
-
WINDOW/AW_xkey.cxx (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/refactor/ARBDB/adlang1.cxx
r6659 r6806 19 19 20 20 #include <static_assert.h> 21 #include <arb_defs.h> 21 22 22 23 #define AWAR_TREE_REFRESH "tmp/focus/tree_refresh" // touch this awar to refresh the tree display … … 2692 2693 }; 2693 2694 2694 void gbl_install_standard_commands(GBDATA *gb_main) 2695 { 2696 gb_install_command_table(gb_main, gbl_command_table, sizeof(gbl_command_table)/sizeof(gbl_command_table[0])); 2697 } 2695 void gbl_install_standard_commands(GBDATA *gb_main) { 2696 gb_install_command_table(gb_main, gbl_command_table, ARRAY_ELEMS(gbl_command_table)); 2697 } -
branches/refactor/AWT/AWT_www.cxx
r6804 r6806 16 16 #include <arbdbt.h> 17 17 #include <arb_str.h> 18 #include <arb_defs.h> 18 19 #include <static_assert.h> 19 20 … … 58 59 59 60 const int DEFAULT_SELECT = 1; // SILVA 60 const int EXAMPLE_COUNT = sizeof(example)/sizeof(*example);61 const int EXAMPLE_COUNT = ARRAY_ELEMS(example); 61 62 COMPILE_ASSERT(EXAMPLE_COUNT <= WWW_COUNT); 62 63 -
branches/refactor/SL/FAST_ALIGNER/fast_aligner.cxx
r6722 r6806 18 18 19 19 #include <awtc_next_neighbours.hxx> 20 21 20 #include <awt_sel_boxes.hxx> 22 21 … … 25 24 26 25 #include <arbdbt.h> 26 27 #include <arb_defs.h> 27 28 28 29 #include <cctype> … … 2969 2970 } 2970 2971 2971 #define TEST_SPECIES_COUNT(test_ali_data) (sizeof(test_ali_data)/sizeof(*test_ali_data))2972 #define TEST_CREATE_DB(error, test_ali_data) test_create_DB(error, test_ali_data, TEST_SPECIES_COUNT(test_ali_data))2972 #define TEST_SPECIES_COUNT(test_ali_data) ARRAY_ELEMS(test_ali_data) 2973 #define TEST_CREATE_DB(error,test_ali_data) test_create_DB(error, test_ali_data, TEST_SPECIES_COUNT(test_ali_data)) 2973 2974 2974 2975 static const char *get_aligned_data_of(GBDATA *gb_main, const char *species_name) { -
branches/refactor/SOURCE_TOOLS/generate_all_links.sh
r6804 r6806 141 141 symlink_file ../TEMPLATES/arb_core.h INCLUDE/arb_core.h && 142 142 symlink_file ../TEMPLATES/arb_debug.h INCLUDE/arb_debug.h && 143 symlink_file ../TEMPLATES/arb_defs.h INCLUDE/arb_defs.h && 143 144 symlink_file ../TEMPLATES/arb_error.h INCLUDE/arb_error.h && 145 symlink_file ../TEMPLATES/arb_str.h INCLUDE/arb_str.h && 144 146 symlink_file ../TEMPLATES/arb_version.h INCLUDE/arb_version.h && 145 147 symlink_file ../TEMPLATES/arbtools.h INCLUDE/arbtools.h && … … 149 151 symlink_file ../TEMPLATES/downcast.h INCLUDE/downcast.h && 150 152 symlink_file ../TEMPLATES/dupstr.h INCLUDE/dupstr.h && 151 symlink_file ../TEMPLATES/arb_str.h INCLUDE/arb_str.h &&152 153 symlink_file ../TEMPLATES/output.h INCLUDE/output.h && 153 154 symlink_file ../TEMPLATES/perf_timer.h INCLUDE/perf_timer.h && -
branches/refactor/TOOLS/arb_probe.cxx
r6803 r6806 13 13 #include <client.h> 14 14 #include <servercntrl.h> 15 #include <arb_defs.h> 15 16 16 17 struct apd_sequence { … … 487 488 } 488 489 489 #define COUNT(array) sizeof(array)/sizeof(*array)490 491 490 void TEST_SLOW_match_probe() { 492 491 const char *arguments[] = { … … 498 497 "BcSSSS00\1" " BcSSSS00 0 0 0.0 2 0 .......UU-===============-UCAAGUCGA\1"; 499 498 500 test_arb_probe( COUNT(arguments), arguments, expected);499 test_arb_probe(ARRAY_ELEMS(arguments), arguments, expected); 501 500 } 502 501 … … 521 520 "AUCAAGUCGAGCGAUGAA 18 B- 1 16 4 44.4 52.0 UUCAUCGCUCGACUUGAU | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 3,\n"; 522 521 523 test_arb_probe( COUNT(arguments), arguments, expected);522 test_arb_probe(ARRAY_ELEMS(arguments), arguments, expected); 524 523 } 525 524 … … 536 535 "ClfPerfr\1" " ClfPerfr 0 0 0.0 17 0 AGAGUUUGA-==================-UUUCCUUCG\1"; 537 536 538 test_arb_probe( COUNT(arguments), arguments, expected);537 test_arb_probe(ARRAY_ELEMS(arguments), arguments, expected); 539 538 } 540 539 -
branches/refactor/WINDOW/AW_xkey.cxx
r6674 r6806 14 14 15 15 #include <arbdbt.h> 16 #include <arb_defs.h> 16 17 17 18 #include <X11/Xlib.h> … … 96 97 }; 97 98 98 #define ARRAY_ELEMS(array) (sizeof(array)/sizeof(array[0]))99 #define TERMINATED_ARRAY_ELEMS(array) (ARRAY_ELEMS(array)-1)100 101 99 const int FIXEDMOD = TERMINATED_ARRAY_ELEMS(awxkeymap); 102 100 const int MODFREE = TERMINATED_ARRAY_ELEMS(awxkeymap_modfree);
