commit 9c50af0ee8deb8c773d10b1a636ed2fe2b13f4c8b5394c379274f620a2cc06b2 from: Stefan Sperling date: Sat Apr 11 08:36:04 2026 UTC rename decode() to utf8d_decode() for namespacing reasons commit - 286a6d0bc1f665f60c520a97dd62f72878864cb57b7d44fb63a04f9238e50b91 commit + 9c50af0ee8deb8c773d10b1a636ed2fe2b13f4c8b5394c379274f620a2cc06b2 blob - ddf507927763da566cd29a06d5f8c4802d47bff672fc0f2ca6399fde268cd77f blob + 94638c697fd41a6cbe786df792a8e31c8a735a825d7db4ea915c67053e6306ef --- gotd/libexec/got-notify-http/got-notify-http.c +++ gotd/libexec/got-notify-http/got-notify-http.c @@ -109,9 +109,9 @@ escape(FILE *fp, const uint8_t *s) uint32_t codepoint, state; const uint8_t *start = s; - state = 0; + state = UTF8_ACCEPT; for (; *s; ++s) { - switch (decode(&state, &codepoint, *s)) { + switch (utf8_decode(&state, &codepoint, *s)) { case UTF8_ACCEPT: switch (codepoint) { case '"': blob - f5fc477a44c3ce979451ac608702d97b4374bc6b014d7a3affdf16f6b725e301 blob + dc5964841027b74682386e686d6e0d38036f4f923a609c52b97b4bd755bb6835 --- lib/utf8d.h +++ lib/utf8d.h @@ -43,7 +43,7 @@ static const uint8_t utf8d[] = { }; static uint32_t inline -decode(uint32_t* state, uint32_t* codep, uint32_t byte) { +utf8_decode(uint32_t* state, uint32_t* codep, uint32_t byte) { uint32_t type = utf8d[byte]; *codep = (*state != UTF8_ACCEPT) ?