Add scouts honor escape hatch for source embedding

This commit is contained in:
Justine Tunney 2020-06-15 19:01:28 -07:00
parent c91b3c5006
commit b4269930f7
547 changed files with 1516 additions and 944 deletions

View file

@ -22,6 +22,7 @@
#include "libc/stdio/internal.h"
#include "libc/stdio/stdio.h"
#include "libc/str/str.h"
#include "libc/str/tpencode.h"
/**
* Writes wide character to stream.
@ -29,8 +30,8 @@
* @return wc if written or -1 w/ errno
*/
wint_t fputwc(wchar_t wc, FILE *f) {
unsigned i, len;
char buf[MB_LEN_MAX];
unsigned len, i;
if (wc != -1) {
len = tpencode(buf, sizeof(buf), wc, false);
for (i = 0; i < len; ++i) {