-rw-r--r-- | configure.ac | 20 | ||||
-rw-r--r-- | src/Makefile.am | 6 | ||||
-rw-r--r-- | src/aggregator.c | 14 | ||||
-rw-r--r-- | src/assign_protein_type.c | 72 | ||||
-rw-r--r-- | src/assign_protein_type.h | 6 | ||||
-rw-r--r-- | src/check_error.c | 14 | ||||
-rw-r--r-- | src/check_error.h | 11 | ||||
-rw-r--r-- | src/check_h5_error.c | 12 | ||||
-rw-r--r-- | src/check_h5_error.h | 12 | ||||
-rw-r--r-- | src/check_ncbi_error.c | 13 | ||||
-rw-r--r-- | src/check_ncbi_error.h | 13 | ||||
-rw-r--r-- | src/load_influenza_aa_dat.c | 31 |
12 files changed, 211 insertions, 13 deletions
diff --git a/src/check_error.c b/src/check_error.c new file mode 100644 index 0000000..70c62c4 --- a/dev/null +++ b/src/check_error.c | |||
@@ -0,0 +1,14 @@ | |||
1 | #include "check_error.h" | ||
2 | #include <error.h> | ||
3 | #include <errno.h> | ||
4 | #include <stdlib.h> | ||
5 | |||
6 | void | ||
7 | check_error (const char *filename, const unsigned int linenum) | ||
8 | { | ||
9 | if (errno) | ||
10 | error_at_line (EXIT_FAILURE, errno, filename, linenum, | ||
11 | "An error has been detected within the application."); | ||
12 | |||
13 | return; | ||
14 | } | ||