From ffc76d36f985817a86ff73822e0ed268226737dd Mon Sep 17 00:00:00 2001 From: lemon Date: Fri, 17 Oct 2025 18:00:52 +0200 Subject: add -E preprocessing option --- common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common.h') diff --git a/common.h b/common.h index f2fff86..c5b7513 100644 --- a/common.h +++ b/common.h @@ -534,7 +534,7 @@ struct wbuf { char *buf; const uint cap; uint len; - const int fd; + int fd; bool err; }; @@ -578,6 +578,7 @@ void warn(const struct span *, const char *, ...); void note(const struct span *, const char *, ...); ushort *utf8to16(uint *ulen, struct arena **, const uchar *s, size_t len); uint *utf8to32(uint *ulen, struct arena **, const uchar *s, size_t len); +int utf8enc(char out[4], uint cp); #endif /* COMMON_H_ */ -- cgit v1.2.3