#include <stdlib.h>
#include <assert.h>
#include <string.h>
Defines | |
#define | NEW(Ref, Type, Nb) |
Redefine the calloc function. | |
#define | RENEW(Ref, Type, Nb) |
Redefine the realloc function. | |
#define | DESTROY(Ref) |
Redefine the free function. | |
#define | MAX(Aa, Bb) ((Aa > Bb) ? (Aa) : (Bb)) |
Defines a maximum function between 2 numbers. | |
#define | MIN(Aa, Bb) ((Aa < Bb) ? (Aa) : (Bb)) |
Defines a minimum function between 2 numbers. |
#define DESTROY | ( | Ref | ) |
Value:
free(Ref); \ Ref = NULL
[in,out] | Ref | : The pointer that needs to be destroyed |
Referenced by aln(), calculate_nb_al_function(), call_carnac(), carnac_individual_energy(), check_parameters_validity(), check_species_repetitions(), compare_all_against_ref(), complete_alignments_attributes(), complete_sequences_attributes(), destroy_alignment(), destroy_main_structure(), destroy_options(), destroy_regex(), destroy_sequence(), eliminate_redundancy_set(), get_sequences(), get_sets_of_sequences(), main(), maxi_clique_search(), read_alignments_files(), recursive_search_maxi_clique(), search_naive_clique(), small_in_large(), write_GFF3(), and write_multifasta().
#define MAX | ( | Aa, | |||
Bb | ) | ((Aa > Bb) ? (Aa) : (Bb)) |
Defines a maximum function between 2 numbers.
[in] | Aa | : First number to compare |
[in] | Bb | : Second number to compare |
Referenced by determine_pos_query(), eliminate_redundancy_species(), and score_function().
#define MIN | ( | Aa, | |||
Bb | ) | ((Aa < Bb) ? (Aa) : (Bb)) |
Defines a minimum function between 2 numbers.
[in] | Aa | : First number to compare |
[in] | Bb | : Second number to compare |
Referenced by determine_pos_query(), and eliminate_redundancy_species().
#define NEW | ( | Ref, | |||
Type, | |||||
Nb | ) |
Value:
Ref = (Type*)calloc((Nb), sizeof(Type)); \
assert(Ref != NULL)
[in,out] | Ref | : The pointer that needs to be allocated |
[in] | Type | : Type of the pointer |
[in] | Nb | : size that needs to be allocated |
Referenced by aln(), calculate_nb_al_function(), call_carnac(), carnac_individual_energy(), check_parameters_validity(), check_species_repetitions(), compare_all_against_ref(), complete_alignments_attributes(), complete_sequences_attributes(), complete_set_sequences(), copy_alignment(), copy_interval_query(), eliminate_redundancy_set(), eliminate_redundancy_species(), get_interesting_regions(), get_sequences(), get_sets_of_sequences(), init_carnac(), main(), maxi_clique_search(), parse_params(), read_alignments_files(), read_file(), read_line(), recursive_search_maxi_clique(), search_naive_clique(), small_in_large(), write_GFF3(), and write_multifasta().
#define RENEW | ( | Ref, | |||
Type, | |||||
Nb | ) |
Value:
Ref = (Type*)realloc(Ref, (Nb) * sizeof(Type)); \
assert(Ref != NULL)
[in,out] | Ref | : The pointer that needs to be reallocated |
[in] | Type | : Type of the pointer |
[in] | Nb | : Total size that needs to be reallocated |
Referenced by carnac_individual_energy(), check_parameters_validity(), check_species_repetitions(), compare_all_against_ref(), complete_sequences_attributes(), eliminate_redundancy_set(), eliminate_redundancy_species(), get_interesting_regions(), get_sequences(), get_sets_of_sequences(), maxi_clique_search(), parse_params(), read_alignments_files(), read_line(), recursive_search_maxi_clique(), and search_naive_clique().