|
|
micro-optimization: fputc (function) -> putc (macro/inline function) - stagit-gopher - static git page generator for gopher |
|
|
 |
git clone git://git.codemadness.org/stagit-gopher (git://git.codemadness.org) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
README |
|
|
 |
LICENSE |
|
|
|
--- |
|
|
 |
commit a9c90b585f158f98dd0997d1509e83f85dd87498 |
|
|
 |
parent 554a9fe2e9d12defd9d6253871d8261d3f3ef3c6 |
|
|
 |
Author: Hiltjo Posthuma <hiltjo@codemadness.org> (mailto://) |
application/vnd.lotus-organizer |
|
|
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(-) |
|
|
|
--- |
|
|
 |
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; |
|
|
|
} |
|
|
|
} |
|