Format code.

This commit is contained in:
Jordan Bancino 2023-03-16 16:53:18 +00:00
parent 27b3b6cdc6
commit a97a593f21
3 changed files with 11 additions and 12 deletions

View file

@ -164,14 +164,13 @@ StreamClose(Stream * stream)
int
StreamVprintf(Stream * stream, const char *fmt, va_list ap)
{
/* This might look like very similar code to IoVprintf(),
* but I chose not to defer to IoVprintf() because that
* would require us to immediately flush the buffer, since
* the Io API is unbuffered. StreamPuts() uses StreamPutc()
* under the hood, which is buffered. It therefore allows
* us to finish filling the buffer and then only flush it
* when necessary, preventing superfluous writes.
*/
/* This might look like very similar code to IoVprintf(), but I
* chose not to defer to IoVprintf() because that would require us
* to immediately flush the buffer, since the Io API is unbuffered.
* StreamPuts() uses StreamPutc() under the hood, which is
* buffered. It therefore allows us to finish filling the buffer
* and then only flush it when necessary, preventing superfluous
* writes. */
char *buf;
ssize_t len;