From 3582ffffd47fd3e5f8296967bd4f317f7daa7acd Mon Sep 17 00:00:00 2001 From: Ben Woodcroft Date: Mon, 12 Dec 2016 18:06:35 +1000 Subject: [PATCH] src: Comply with C99 definition of 'inline'. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, compilation failed with clang and thus on recent OSX versions. Reported by Rasmus Ă…gren at . --- src/orfm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/orfm.c b/src/orfm.c index fc07571..edb7af2 100644 --- a/src/orfm.c +++ b/src/orfm.c @@ -133,14 +133,14 @@ void translate(char* begin, int num, bool reverse, char* codonTable){ puts(for_printing); } -inline void print_sequence_header(kseq_t* seq_struct, int start_position, int frame, int orf_counter){ +static inline void print_sequence_header(kseq_t* seq_struct, int start_position, int frame, int orf_counter){ if (seq_struct->comment.l > 0){ printf(">%s_%i_%i_%i %s\n", seq_struct->name.s, start_position+1, frame, orf_counter, seq_struct->comment.s); } else { printf(">%s_%i_%i_%i\n", seq_struct->name.s, start_position+1, frame, orf_counter); } } -inline void print_transcript_sequence_header(kseq_t* seq_struct, int start_position, int frame, int orf_counter, FILE* transcript_output_fp){ +static inline void print_transcript_sequence_header(kseq_t* seq_struct, int start_position, int frame, int orf_counter, FILE* transcript_output_fp){ if (seq_struct->comment.l > 0){ fprintf(transcript_output_fp, ">%s_%i_%i_%i %s\n", seq_struct->name.s, start_position+1, frame, orf_counter, seq_struct->comment.s); } else { @@ -148,7 +148,7 @@ inline void print_transcript_sequence_header(kseq_t* seq_struct, int start_posit } } -inline void print_sequence(kseq_t* sequence, +static inline void print_sequence(kseq_t* sequence, FILE* transcript_output_fp, char* codonTable, int *orf_counter,