Minor doc fixes

This commit is contained in:
Hugues Delorme 2016-02-03 11:44:06 +01:00
parent b7bceff748
commit 07fdbb81f3
2 changed files with 3 additions and 2 deletions

View File

@ -30,7 +30,7 @@ struct gmio_stringstream gmio_stringstream(
void gmio_stringstream_init_pos(struct gmio_stringstream *sstream) void gmio_stringstream_init_pos(struct gmio_stringstream *sstream)
{ {
/* Trick: declaring the buffer exhausted will actually trigger the first /* Trick: declaring the buffer exhausted will actually trigger the first
* call to gmio_stream_read() inside gmio_next_char() * call to gmio_stream_read() inside gmio_stringstream_next_char()
*/ */
sstream->strbuff.len = 0; sstream->strbuff.len = 0;
sstream->strbuff_end = sstream->strbuff.ptr; sstream->strbuff_end = sstream->strbuff.ptr;

View File

@ -438,7 +438,8 @@ int gmio_stla_eat_next_token_inplace(
} }
int gmio_stla_eat_until_token( int gmio_stla_eat_until_token(
struct gmio_stla_parse_data* data, const enum gmio_stla_token* end_tokens) struct gmio_stla_parse_data* data,
const enum gmio_stla_token* end_tokens)
{ {
if (!stla_token_match_candidate(data->token, end_tokens)) { if (!stla_token_match_candidate(data->token, end_tokens)) {
struct gmio_stringstream* sstream = &data->strstream; struct gmio_stringstream* sstream = &data->strstream;