stac

Static C in HTML - simple static site generator
git clone git://git.kocotian.pl/stacinhtml.git
Log | Files | Refs | README | LICENSE

commit 4ea35967576040101dc0f58c004cb85ab5131b1b
parent c915a35e9b5c414a2c45d63e76bb034d7ed5d543
Author: kocotian <kocotian@kocotian.pl>
Date:   Tue,  3 Aug 2021 16:32:25 +0000

Unicode fixed

Diffstat:
Mcompile.c | 5++++-
Mconfig.mk | 2+-
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/compile.c b/compile.c @@ -80,11 +80,14 @@ generateCode(int fd, String input, int c_mode) write(fd, input.data, input.len); } else { size_t i = -1; + unsigned char c = 0; write(fd, "write(fd, \"", 11); while (++i < input.len) { + c = (unsigned)(*input.data); if (*input.data == '\n') dprintf(fd, "\"\n\""); - dprintf(fd, "\\%03o", *(input.data++)); + dprintf(fd, "\\%03o", c); + ++input.data; } dprintf(fd, "\", %ld);", input.len); } diff --git a/config.mk b/config.mk @@ -1,7 +1,7 @@ # basics MAJORVERSION = 0 SUBVERSION = 2 -PATCHLEVEL = 4 +PATCHLEVEL = 5 BUILDNAME = vanilla VERSION = ${MAJORVERSION}.${SUBVERSION}.${PATCHLEVEL}-${BUILDNAME}