Changeset 8315
- Timestamp:
- 20/12/11 15:54:35 (5 months ago)
- Location:
- trunk
- Files:
-
- 3 modified
-
ARBDB/adGene.cxx (modified) (2 diffs)
-
ARBDB/adhash.cxx (modified) (5 diffs)
-
NTREE/NT_extern.cxx (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ARBDB/adGene.cxx
r8313 r8315 72 72 } 73 73 74 #if defined(UNIT_TESTS) 74 75 static GBDATA* GEN_create_nonexisting_gene_rel_gene_data(GBDATA *gb_gene_data, const char *name) { 75 76 GB_ERROR error = GB_push_transaction(gb_gene_data); … … 89 90 return gb_gene; 90 91 } 92 #endif 91 93 92 94 GBDATA* GEN_find_or_create_gene_rel_gene_data(GBDATA *gb_gene_data, const char *name) { -
trunk/ARBDB/adhash.cxx
r8309 r8315 384 384 385 385 386 static void GBS_string_2_hashtab(GB_HASH *hash, char *data) { // modifies data 386 #if defined(UNIT_TESTS) 387 static void GBS_string_2_hashtab(GB_HASH *hash, char *data) { // currently only used in unit tests below 388 // modifies data 387 389 char *p, *d, *dp; 388 390 int c; … … 424 426 } 425 427 } 428 #endif 426 429 427 430 static gbs_hash_entry *find_hash_entry(const GB_HASH *hs, const char *key, size_t *index) { … … 743 746 } 744 747 748 #if defined(UNIT_TESTS) 745 749 static size_t GBS_hash_count_value(GB_HASH *hs, long val) { 746 750 size_t hsize = hs->size; … … 759 763 return count; 760 764 } 765 #endif 761 766 762 767 const char *GBS_hash_next_element_that(GB_HASH *hs, const char *last_key, bool (*condition)(const char *key, long val, void *cd), void *cd) { … … 895 900 } 896 901 902 #if defined(UNIT_TESTS) 897 903 static long GBS_numhash_count_elems(GB_NUMHASH *hs) { 898 904 return hs->nelem; 899 905 } 906 #endif 900 907 901 908 static void GBS_erase_numhash(GB_NUMHASH *hs) { -
trunk/NTREE/NT_extern.cxx
r8313 r8315 871 871 } 872 872 873 #if defined(DEBUG) 873 874 static void NT_fix_database(AW_window *) { 874 875 GB_ERROR err = 0; … … 876 877 if (err) aw_message(err); 877 878 } 879 #endif 878 880 879 881 static void relink_pseudo_species_to_organisms(GBDATA *&ref_gb_node, char *&ref_name, GB_HASH *organism_hash) { … … 990 992 // -------------------------------------------------------------------------------------------------- 991 993 992 static void NT_alltree_remove_leafs(AW_window *, AW_CL cl_mode, AW_CL cl_gb_main) { 994 static void NT_alltree_remove_leafs(AW_window *, AW_CL cl_mode, AW_CL cl_gb_main) { // @@@ test and activate for public 993 995 GBDATA *gb_main = (GBDATA*)cl_gb_main; 994 996 GBT_TREE_REMOVE_TYPE mode = (GBT_TREE_REMOVE_TYPE)cl_mode;
