wip on intellisense (again)
This commit is contained in:
@@ -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_ */
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user