void arraylist_free(arraylist_t *a) { if (a->items != &a->_space[0]) LLT_FREE(a->items); a->len = 0; a->max = AL_N_INLINE; a->items = &a->_space[0]; }
int jl_vprintf(uv_stream_t *s, const char *format, va_list args) { char *str=NULL; int c; va_list al; #if defined(_OS_WINDOWS_) && !defined(_COMPILER_MINGW_) al = args; #else va_copy(al, args); #endif c = vasprintf(&str, format, al); if (c >= 0) { jl_write(s, str, c); LLT_FREE(str); } va_end(al); return c; }