> +             int rv = -1;
> +             size_t n;
> +             size_t old_pos;
> +             size_t old_size;
> +             va_list ap_copy;
> +             char c;
> +
> +             old_pos = mio->impl.mem.pos;
> +             old_size = mio->impl.mem.size;
> +             va_copy (ap_copy, ap);
> +             /* compute the size we will need into the buffer */
> +             n = vsnprintf (&c, 1, format, ap_copy);
> +             va_end (ap_copy);
> +             if (mem_try_ensure_space (mio, n))
> +             {
> +                     unsigned char c;

There could be some compatible `fmemopen` if it doesn't exist on Windows, it 
doesn't seem like a hard technical problem. It's probably quite a bit less code 
than MIO and more generally useful to implement it too :)

(not to disrespect MIO, I considered using it once and tried to take out G* 
dependency as UCtags did)

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1070/files/f95656cbe818d69bb4432d14b978ec83764872b2#r71969384

Reply via email to