Skip to content
Snippets Groups Projects
Commit 0574f35e authored by Joachim Breitner's avatar Joachim Breitner
Browse files

fasta: Inline function needs to be static

if I read http://gcc.gnu.org/onlinedocs/gcc/Inline.html correctly.

Also, clean generated files.
parent 5748d428
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,8 @@ include $(TOP)/mk/boilerplate.mk
# we don't want to include fasta-c.c
SRCS = Main.hs
CLEAN_FILES += fasta-c fasta.faststdout fasta.stdout fasta.slowstdout
FAST_OPTS = 250000
NORM_OPTS = 2500000
SLOW_OPTS = 25000000 # official shootout setting
......
......@@ -37,7 +37,7 @@ amino homosapiens[] = {
#define WIDTH 60
#define LENGTH(a) (sizeof(a)/sizeof(a[0]))
inline void str_write(char *s) {
static inline void str_write(char *s) {
write(fileno(stdout), s, strlen(s));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment