mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-26 12:30:30 +00:00
Import some Lua documentation
I personally find it easier to read the documentation in Emacs using JavaDoc style comments.
This commit is contained in:
parent
41b9eb6873
commit
7d25fb0090
16 changed files with 801 additions and 108 deletions
|
@ -402,6 +402,14 @@ bool __asan_is_valid_iov(const struct iovec *iov, int iovlen) {
|
|||
}
|
||||
}
|
||||
|
||||
bool __asan_is_valid_strlist(char *const *p) {
|
||||
for (;; ++p) {
|
||||
if (!__asan_is_valid(p, sizeof(char *))) return false;
|
||||
if (!*p) return true;
|
||||
if (!__asan_is_valid(*p, 1)) return false;
|
||||
}
|
||||
}
|
||||
|
||||
static const char *__asan_dscribe_heap_poison(long c) {
|
||||
switch (c) {
|
||||
case kAsanHeapFree:
|
||||
|
|
|
@ -25,5 +25,6 @@ void __asan_poison(uintptr_t, size_t, int);
|
|||
void __asan_unpoison(uintptr_t, size_t);
|
||||
bool __asan_is_valid(const void *, size_t);
|
||||
bool __asan_is_valid_iov(const struct iovec *, int);
|
||||
bool __asan_is_valid_strlist(char *const *);
|
||||
|
||||
#endif /* COSMOPOLITAN_LIBC_INTRIN_ASAN_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue