Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
yobertz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
yobertz
3y ago
I think I would make grow() like this to prevent the mistake of accidentally laying out the array fields in the wrong order. void grow(void **ptr, ptrdiff_t *cap, ptrdiff_t *len, arena *a) ... #define push(s, a) ... grow((void **)&am