Introduction
Introduction Statistics Contact Development Disclaimer Help
micro-optimization: fputc (function) -> putc (macro/inline function) - stagit-g…
git clone git://git.codemadness.org/stagit-gopher
Log
Files
Refs
README
LICENSE
---
commit a9c90b585f158f98dd0997d1509e83f85dd87498
parent 554a9fe2e9d12defd9d6253871d8261d3f3ef3c6
Author: Hiltjo Posthuma <[email protected]>
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;
}
}
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.