Changeset 6813
- Timestamp:
- 09/09/10 20:23:50 (17 months ago)
- Location:
- trunk
- Files:
-
- 1 removed
- 32 modified
- 3 copied
-
ALIV3/a3_ptree1.cxx (modified) (1 diff)
-
ALIV3/a3_ptree2.cxx (modified) (1 diff)
-
ALIV3/a3_seq.cxx (modified) (1 diff)
-
ARBDB/ad_prot.h (modified) (1 diff)
-
ARBDB/adlang1.cxx (modified) (2 diffs)
-
ARBDB/adstring.cxx (modified) (1 diff)
-
ARBDB/adtcp.cxx (modified) (1 diff)
-
ARBDB/adtools.cxx (modified) (2 diffs)
-
ARBDB/arb_assert.h (modified) (1 diff)
-
AWT/AWT_db_browser.cxx (modified) (1 diff)
-
AWT/AWT_www.cxx (modified) (2 diffs)
-
AWTI/AWTI_export.cxx (modified) (1 diff)
-
EDIT4/ED4_protein_2nd_structure.cxx (modified) (1 diff)
-
EDIT4/ED4_text_terminals.cxx (modified) (1 diff)
-
MERGE/MG_gene_species.cxx (modified) (1 diff)
-
MERGE/MG_species.cxx (modified) (1 diff)
-
NTREE/NT_dbrepair.cxx (modified) (1 diff)
-
PROBE/PT_io.cxx (modified) (1 diff)
-
PROBE/PT_new_design.cxx (modified) (1 diff)
-
SL/AW_NAME/AW_rename.cxx (modified) (1 diff)
-
SL/DB_SCANNER/db_scanner.cxx (modified) (1 diff)
-
SL/FAST_ALIGNER/fast_aligner.cxx (modified) (3 diffs)
-
SL/FILTER/AP_filter.cxx (modified) (1 diff)
-
SL/PRONUC/AP_pro_a_nucs.cxx (modified) (1 diff)
-
SL/SEQUENCE/AP_seq_dna.cxx (modified) (1 diff)
-
SL/SEQUENCE/AP_seq_protein.cxx (modified) (1 diff)
-
SOURCE_TOOLS/generate_all_links.sh (modified) (2 diffs)
-
TEMPLATES/arb_core.h (copied) (copied from branches/refactor/TEMPLATES/arb_core.h)
-
TEMPLATES/arb_defs.h (copied) (copied from branches/refactor/TEMPLATES/arb_defs.h)
-
TEMPLATES/arb_error.h (modified) (1 diff)
-
TEMPLATES/arb_str.h (copied) (copied from branches/refactor/TEMPLATES/arb_str.h) (1 diff)
-
TEMPLATES/inline.h (deleted)
-
TOOLS/arb_probe.cxx (modified) (5 diffs)
-
WINDOW/AW_button.cxx (modified) (1 diff)
-
WINDOW/AW_device.cxx (modified) (1 diff)
-
WINDOW/AW_xkey.cxx (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ALIV3/a3_ptree1.cxx
r6488 r6813 12 12 #include "a3_ptree.hxx" 13 13 14 #include < inline.h>14 #include <arb_str.h> 15 15 16 16 #include <iostream> -
trunk/ALIV3/a3_ptree2.cxx
r6488 r6813 12 12 #include "a3_ptree.hxx" 13 13 14 #include < inline.h>14 #include <arb_str.h> 15 15 16 16 #include <iostream> -
trunk/ALIV3/a3_seq.cxx
r6488 r6813 13 13 14 14 #include <arbdb.h> 15 #include < inline.h>15 #include <arb_str.h> 16 16 17 17 #include <iostream> -
trunk/ARBDB/ad_prot.h
r6812 r6813 201 201 char *GBS_fconvert_string(char *buffer); 202 202 char *GBS_replace_tabs_by_spaces(const char *text); 203 int GBS_strscmp(const char *s1, const char *s2);204 203 const char *GBS_readable_size(unsigned long long size); 205 204 char *GBS_trim(const char *str); -
trunk/ARBDB/adlang1.cxx
r6659 r6813 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 } -
trunk/ARBDB/adstring.cxx
r6812 r6813 1953 1953 } 1954 1954 1955 int GBS_strscmp(const char *s1, const char *s2) {1956 int cmp = 0;1957 size_t idx = 0;1958 while (!cmp) {1959 if (!s1[idx] || !s2[idx]) break;1960 cmp = s1[idx] - s2[idx];1961 ++idx;1962 }1963 return cmp;1964 }1965 1966 1955 const char *GBS_readable_size(unsigned long long size) { 1967 1956 // return human readable size information -
trunk/ARBDB/adtcp.cxx
r6736 r6813 14 14 15 15 #include <arbdbt.h> 16 #include < inline.h>16 #include <arb_str.h> 17 17 18 18 #include "gb_local.h" -
trunk/ARBDB/adtools.cxx
r6659 r6813 9 9 // =============================================================== // 10 10 11 #include <arb_str.h> 11 12 #include <arbdbt.h> 12 13 … … 130 131 } 131 132 else { 132 if ( GBS_strscmp(insert->datapath, key+1) == 0) { // datapath matches133 if (ARB_strscmp(insert->datapath, key+1) == 0) { // datapath matches 133 134 to_insert = strdup(key+strlen(insert->datapath)); // cut off prefix 134 135 to_insert[0] = key[0]; // copy type -
trunk/ARBDB/arb_assert.h
r6743 r6813 99 99 * (done because automatic backtrace on SIGSEGV lacks name of current function) 100 100 */ 101 102 #ifndef ARB_CORE_H 103 #include <arb_core.h> 104 #endif 105 #ifndef AD_K_PROT_H 106 #error "header dependencies broken (missing prototypes from ad_k_prot.h)" 107 #endif 101 108 102 109 #define ARB_SIGSEGV(backtrace) do { \ -
trunk/AWT/AWT_db_browser.cxx
r6666 r6813 14 14 #include "awt.hxx" 15 15 16 #include < inline.h>16 #include <arb_str.h> 17 17 #include <AP_Tree.hxx> 18 18 -
trunk/AWT/AWT_www.cxx
r6588 r6813 15 15 #include <aw_awars.hxx> 16 16 #include <arbdbt.h> 17 #include <inline.h> 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 -
trunk/AWTI/AWTI_export.cxx
r6550 r6813 18 18 #include <aw_window.hxx> 19 19 #include <arbdbt.h> 20 #include < inline.h>20 #include <arb_str.h> 21 21 22 22 #define AWAR_EXPORT_FILE "tmp/export_db/file" -
trunk/EDIT4/ED4_protein_2nd_structure.cxx
r6593 r6813 22 22 23 23 #include "arbdbt.h" 24 #include <inline.h>25 24 26 25 #include <iostream> -
trunk/EDIT4/ED4_text_terminals.cxx
r6513 r6813 28 28 #include <awt_attributes.hxx> 29 29 #include <st_window.hxx> 30 #include < inline.h>30 #include <arb_str.h> 31 31 32 32 #include <iostream> -
trunk/MERGE/MG_gene_species.cxx
r6597 r6813 22 22 #include <adGene.h> 23 23 #include <arbdbt.h> 24 #include < inline.h>24 #include <arb_str.h> 25 25 26 26 using namespace std; -
trunk/MERGE/MG_species.cxx
r6567 r6813 18 18 #include <aw_awars.hxx> 19 19 #include <arbdbt.h> 20 #include < inline.h>20 #include <arb_str.h> 21 21 22 22 #define AWAR1 "tmp/merge1/" -
trunk/NTREE/NT_dbrepair.cxx
r6385 r6813 19 19 #include <aw_color_groups.hxx> 20 20 21 #include < inline.h>21 #include <arb_str.h> 22 22 23 23 #include <map> -
trunk/PROBE/PT_io.cxx
r6463 r6813 14 14 #include <arbdbt.h> 15 15 #include <BI_helix.hxx> 16 #include < inline.h>16 #include <arb_str.h> 17 17 18 18 int compress_data(char *probestring) { -
trunk/PROBE/PT_new_design.cxx
r6659 r6813 15 15 #include "probe_tree.hxx" 16 16 #include <arbdbt.h> 17 #include < inline.h>17 #include <arb_str.h> 18 18 19 19 #ifdef P_ -
trunk/SL/AW_NAME/AW_rename.cxx
r6811 r6813 14 14 #include <aw_awars.hxx> 15 15 #include <aw_window.hxx> 16 #include < inline.h>16 #include <cctype> 17 17 18 18 #include <names_client.h> -
trunk/SL/DB_SCANNER/db_scanner.cxx
r6422 r6813 18 18 #include <aw_select.hxx> 19 19 20 #include < inline.h>20 #include <arb_str.h> 21 21 #include <arbdbt.h> 22 22 -
trunk/SL/FAST_ALIGNER/fast_aligner.cxx
r6722 r6813 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) { -
trunk/SL/FILTER/AP_filter.cxx
r6602 r6813 11 11 #include "AP_filter.hxx" 12 12 #include <arbdb.h> 13 #include < inline.h>13 #include <arb_str.h> 14 14 15 15 -
trunk/SL/PRONUC/AP_pro_a_nucs.cxx
r6510 r6813 13 13 #include <AP_codon_table.hxx> 14 14 #include <arbdbt.h> 15 #include < inline.h>15 #include <arb_str.h> 16 16 17 17 #define pn_assert(cond) arb_assert(cond) -
trunk/SL/SEQUENCE/AP_seq_dna.cxx
r6592 r6813 6 6 #include <ARB_Tree.hxx> 7 7 8 #include < inline.h>8 #include <arb_str.h> 9 9 10 10 char *AP_sequence_parsimony::table; -
trunk/SL/SEQUENCE/AP_seq_protein.cxx
r6591 r6813 6 6 #include <ARB_Tree.hxx> 7 7 8 #include < inline.h>8 #include <arb_str.h> 9 9 #include <climits> 10 10 -
trunk/SOURCE_TOOLS/generate_all_links.sh
r6750 r6813 139 139 symlink_file ../TEMPLATES/SigHandler.h INCLUDE/SigHandler.h && 140 140 symlink_file ../TEMPLATES/arb_backtrace.h INCLUDE/arb_backtrace.h && 141 symlink_file ../TEMPLATES/arb_core.h INCLUDE/arb_core.h && 141 142 symlink_file ../TEMPLATES/arb_debug.h INCLUDE/arb_debug.h && 143 symlink_file ../TEMPLATES/arb_defs.h INCLUDE/arb_defs.h && 142 144 symlink_file ../TEMPLATES/arb_error.h INCLUDE/arb_error.h && 145 symlink_file ../TEMPLATES/arb_str.h INCLUDE/arb_str.h && 143 146 symlink_file ../TEMPLATES/arb_version.h INCLUDE/arb_version.h && 144 147 symlink_file ../TEMPLATES/arbtools.h INCLUDE/arbtools.h && … … 148 151 symlink_file ../TEMPLATES/downcast.h INCLUDE/downcast.h && 149 152 symlink_file ../TEMPLATES/dupstr.h INCLUDE/dupstr.h && 150 symlink_file ../TEMPLATES/inline.h INCLUDE/inline.h &&151 153 symlink_file ../TEMPLATES/output.h INCLUDE/output.h && 152 154 symlink_file ../TEMPLATES/perf_timer.h INCLUDE/perf_timer.h && -
trunk/TEMPLATES/arb_error.h
r6385 r6813 12 12 #ifndef ARB_ERROR_H 13 13 #define ARB_ERROR_H 14 15 #ifndef ARB_CORE_H 16 #include <arb_core.h> 17 #endif 14 18 15 19 // ARB_ERROR is a dropin replacement for GB_ERROR (C++ only) -
trunk/TEMPLATES/arb_str.h
r6804 r6813 13 13 #define ARB_STR_H 14 14 15 #ifndef _CPP_CSTDDEF 16 #include <cstddef> 17 #endif 18 #ifndef _CPP_CCTYPE 15 19 #include <cctype> 16 17 #ifndef __cplusplus18 // this header only works with c++19 // those functions needed by ARBDB are duplicated in adstring.c (with GBS_-prefix)20 #error inline.h may be used in C++ only21 20 #endif 22 21 -
trunk/TOOLS/arb_probe.cxx
r6750 r6813 13 13 #include <client.h> 14 14 #include <servercntrl.h> 15 #include <arb_defs.h> 15 16 16 17 struct apd_sequence { … … 451 452 } 452 453 453 #define COUNT(array) sizeof(array)/sizeof(*array)454 455 454 void TEST_SLOW_match_probe() { 456 455 const char *arguments[] = { … … 462 461 "BcSSSS00\1" " BcSSSS00 0 0 0.0 2 0 .......UU-===============-UCAAGUCGA\1"; 463 462 464 test_arb_probe( COUNT(arguments), arguments, expected);463 test_arb_probe(ARRAY_ELEMS(arguments), arguments, expected); 465 464 } 466 465 … … 485 484 "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"; 486 485 487 test_arb_probe( COUNT(arguments), arguments, expected);486 test_arb_probe(ARRAY_ELEMS(arguments), arguments, expected); 488 487 } 489 488 … … 500 499 "ClfPerfr\1" " ClfPerfr 0 0 0.0 17 0 AGAGUUUGA-==================-UUUCCUUCG\1"; 501 500 502 test_arb_probe( COUNT(arguments), arguments, expected);501 test_arb_probe(ARRAY_ELEMS(arguments), arguments, expected); 503 502 } 504 503 -
trunk/WINDOW/AW_button.cxx
r6675 r6813 20 20 #include <arbdbt.h> 21 21 22 #include < inline.h>22 #include <arb_str.h> 23 23 24 24 #include <Xm/Frame.h> -
trunk/WINDOW/AW_device.cxx
r6411 r6813 12 12 #include "aw_commn.hxx" 13 13 14 #include < inline.h>14 #include <arb_str.h> 15 15 16 16 void AW_clip::set_cliprect(AW_rectangle *rect, bool allow_oversize) { -
trunk/WINDOW/AW_xkey.cxx
r6674 r6813 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);
