diff --git a/src/ecogrep.c b/src/ecogrep.c index c88f0d6..17aa73e 100644 --- a/src/ecogrep.c +++ b/src/ecogrep.c @@ -7,12 +7,6 @@ #include -typedef enum -{ - FALSE = 0, - TRUE = 1 -} BOOL; - #define VERSION "0.1" void getLineContent(char *stream, ecoseq_t *seq){ @@ -50,7 +44,7 @@ void freememory(char **tab, int32_t num){ } /** - * Check if a pattern match a string using mamberall libapat function + * Check if pattern match a string using mamberall libapat function * @param line array containing sequence information * @param pattern array containing patterns to test on the sequence * @param numpattern number of pattern in pattern array @@ -242,7 +236,7 @@ int main(int argc, char **argv){ /** * Get the taxonomy back **/ - taxonomy = read_taxonomy(database); + taxonomy = read_taxonomy(database,0); /** * Parse the stream @@ -312,10 +306,8 @@ int main(int argc, char **argv){ { printf("%s",orig); matchingresult++; - } + } } - - } if ( file != stdin ) fclose(file);