micro-optimization: fputc (function) -> putc (macro/inline function) - stagit-gopher - A git gopher frontend. (mirror)
HTML git clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit a9c90b585f158f98dd0997d1509e83f85dd87498
DIR parent 554a9fe2e9d12defd9d6253871d8261d3f3ef3c6
HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 9 Jan 2021 14:57:30 +0100
micro-optimization: fputc (function) -> putc (macro/inline function)
Diffstat:
M stagit-gopher-index.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/stagit-gopher-index.c b/stagit-gopher-index.c
@@ -104,7 +104,7 @@ gphtext(FILE *fp, const char *s, size_t len)
fputs(" ", fp);
break;
default:
- fputc(*s, fp);
+ putc(*s, fp);
break;
}
}
@@ -128,7 +128,7 @@ gphlink(FILE *fp, const char *s, size_t len)
fputs("\\|", fp);
break;
default:
- fputc(*s, fp);
+ putc(*s, fp);
break;
}
}