SMOLNET PORTAL home about changes
ifprintunderline: small optimization - pointtools - Simple point utilities to hold text presentations.	Err	bitreich.org	70
hgit clone git://bitreich.org/pointtools/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/pointtools/	URL:git://bitreich.org/pointtools/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/pointtools/	bitreich.org	70
1Log	/scm/pointtools/log.gph	bitreich.org	70
1Files	/scm/pointtools/files.gph	bitreich.org	70
1Refs	/scm/pointtools/refs.gph	bitreich.org	70
1Tags	/scm/pointtools/tag	bitreich.org	70
1README	/scm/pointtools/file/README.md.gph	bitreich.org	70
1LICENSE	/scm/pointtools/file/LICENSE.gph	bitreich.org	70
i---	Err	bitreich.org	70
1commit 44f42507f8b54d6f3c96869275077ee39dae18d8	/scm/pointtools/commit/44f42507f8b54d6f3c96869275077ee39dae18d8.gph	bitreich.org	70
1parent 0e58fcdb306d8383ead9eafdcd6666515a44ab50	/scm/pointtools/commit/0e58fcdb306d8383ead9eafdcd6666515a44ab50.gph	bitreich.org	70
hAuthor: Hiltjo Posthuma <hiltjo@codemadness.org>	URL:mailto:hiltjo@codemadness.org	bitreich.org	70
iDate:   Wed, 29 Apr 2020 19:31:59 +0200	Err	bitreich.org	70
i	Err	bitreich.org	70
ifprintunderline: small optimization	Err	bitreich.org	70
i	Err	bitreich.org	70
iDon't run utf8strlen potentially for each character.	Err	bitreich.org	70
i	Err	bitreich.org	70
iSigned-off-by: Christoph Lohmann <20h@r-36.net>	Err	bitreich.org	70
i	Err	bitreich.org	70
iDiffstat:	Err	bitreich.org	70
i  M md2point.c                          |       5 +++--	Err	bitreich.org	70
i	Err	bitreich.org	70
i1 file changed, 3 insertions(+), 2 deletions(-)	Err	bitreich.org	70
i---	Err	bitreich.org	70
1diff --git a/md2point.c b/md2point.c	/scm/pointtools/file/md2point.c.gph	bitreich.org	70
i@@ -25,10 +25,11 @@ utf8strlen(const char *s)	Err	bitreich.org	70
i void	Err	bitreich.org	70
i fprintunderline(FILE *fp, const char *str)	Err	bitreich.org	70
i {	Err	bitreich.org	70
i-        size_t i;	Err	bitreich.org	70
i+        size_t i, len;	Err	bitreich.org	70
i 	Err	bitreich.org	70
i         fprintf(fp, "\n  %s\n  ", str);	Err	bitreich.org	70
i-        for (i = 0; i <= utf8strlen(str); ++i)	Err	bitreich.org	70
i+        len = utf8strlen(str);	Err	bitreich.org	70
i+        for (i = 0; i <= len; ++i)	Err	bitreich.org	70
i                 fputs("=", fp);	Err	bitreich.org	70
i         fputs("\n\n", fp);	Err	bitreich.org	70
i }	Err	bitreich.org	70
.
Response: text/plain
Original URLgopher://bitreich.org/0/scm/pointtools/commit/44f42507f8b...
Content-Typetext/plain; charset=utf-8