Fix llama.com interactive mode regressions

This commit is contained in:
Justine Tunney 2023-05-13 00:09:38 -07:00
parent fd34ef732d
commit 4a8a81eb9f
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
3 changed files with 67 additions and 22 deletions

View file

@ -24,16 +24,12 @@
#include "libc/limits.h"
#include "libc/macros.internal.h"
#ifdef DescribeIovec
#undef DescribeIovec
#endif
#define N 300
#define append(...) o += ksnprintf(buf + o, N - o, __VA_ARGS__)
const char *DescribeIovec(char buf[N], ssize_t rc, const struct iovec *iov,
int iovlen) {
const char *(DescribeIovec)(char buf[N], ssize_t rc, const struct iovec *iov,
int iovlen) {
const char *d;
int i, j, o = 0;