Introduction
Introduction Statistics Contact Development Disclaimer Help
micro-optimization: fputc (function) -> putc (macro/inline function) - sfeed_cu…
git clone git://git.codemadness.org/sfeed_curses
Log
Files
Refs
README
LICENSE
---
commit 1c4116d1fa7db2ddf540d05df381cbf58e932981
parent 3ba0103696c5fade753e74ac49a0f05a96463c13
Author: Hiltjo Posthuma <[email protected]>
Date: Sat, 9 Jan 2021 14:18:47 +0100
micro-optimization: fputc (function) -> putc (macro/inline function)
Diffstat:
M sfeed_curses.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/sfeed_curses.c b/sfeed_curses.c
@@ -609,13 +609,13 @@ pipeitem(const char *cmd, struct item *item, int field, i…
if (field == -1) {
for (i = 0; i < FieldLast; i++) {
if (i)
- fputc('\t', fp);
+ putc('\t', fp);
fputs(item->fields[i], fp);
}
} else {
fputs(item->fields[field], fp);
}
- fputc('\n', fp);
+ putc('\n', fp);
status = pclose(fp);
status = WIFEXITED(status) ? WEXITSTATUS(status) : 127;
_exit(status);
@@ -1651,7 +1651,7 @@ markread(struct pane *p, off_t from, off_t to, int isread)
item = (struct item *)row->data;
if (item->isnew != isnew) {
fputs(item->link, fp);
- fputc('\n', fp);
+ putc('\n', fp);
}
}
status = pclose(fp);
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.