wip on intellisense (again)

This commit is contained in:
Alexander Nicholi 2021-02-02 11:14:45 -05:00
parent 9841e2186a
commit 7642710155
No known key found for this signature in database
GPG key ID: B75B2EB05540F74C
18 changed files with 242 additions and 52 deletions

View file

@ -3,6 +3,7 @@
#include "libc/str/str.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
#ifndef tinystrstr
#define tinystrstr(HAYSTACK, NEEDLE) \
({ \
autotype(HAYSTACK) Haystack = (HAYSTACK); \
@ -21,6 +22,7 @@
Found: \
Haystack; \
})
#endif /* tinystrstr */
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_STR_TINYSTRSTR_H_ */

View file

@ -27,7 +27,7 @@ forceinline int tpdecodecb(wint_t *out, int first,
if ((cb & 0b11000000) == 0b10000000) {
wc = wc << 6 | (cb & 0b00111111);
} else {
if (out) *out = u'<EFBFBD>';
if (out) *out = u'\xFFFD';
return -1;
}
}