Re: [PATCH 6/9] Add stream helper library
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Jun 24, 2010, 21:29 UTC
- Message-ID
- <20100624212904.GB2458@burratino>
- In-Reply-To
- <AANLkTinQT6YvwkYrehAl5kGW9Ebkq1AantCap5nD8ByR@mail.gmail.com>
Ramkumar Ramachandra wrote:
> Jonathan Nieder wrote:
Show 6 quoted lines
>> This library provides thread-unsafe fgets()- and fread()-like >> functions where the caller does not have to supply a buffer. It >> maintains a couple of static buffers and provides an API to use >> them. > > Few (no?) changes since last time.
I simplified it a bit by getting rid of pushback.
static uint32_t line_buffer_len = 0; static uint32_t line_len = 0;
Sorry, I should have mentioned so.
Jonathan