aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.h
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-10-17 18:00:52 +0200
committerlemon <lsof@mailbox.org>2025-10-17 18:30:36 +0200
commitffc76d36f985817a86ff73822e0ed268226737dd (patch)
tree45b8c70a8e07e2abb3eef9f4e0a50d672b7e40bb /common.h
parented58941c2c5dc62d7c5703d4be205626f9c3389b (diff)
add -E preprocessing option
Diffstat (limited to 'common.h')
-rw-r--r--common.h3
1 files changed, 2 insertions, 1 deletions
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_ */