Mercurial > dovecot > original-hg > dovecot-1.2
diff src/lib/istream.c @ 4451:1a35d53c18fc HEAD
Array API redesigned to work using unions. It now provides type safety
without having to enable DEBUG, as long as the compiler supports typeof().
Its API changed a bit. It now allows directly accessing the array contents,
although that's not necessarily recommended. Changed existing array usage to
be type safe in a bit more places. Removed array_t completely. Also did
s/modifyable/modifiable/.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 28 Jun 2006 16:10:25 +0300 |
parents | 71b8faa84ec6 |
children | 81394e71f92a |
line wrap: on
line diff
--- a/src/lib/istream.c Wed Jun 28 01:51:47 2006 +0300 +++ b/src/lib/istream.c Wed Jun 28 16:10:25 2006 +0300 @@ -155,7 +155,7 @@ str_truncate(stream->line_str, 0); str_append_n(stream->line_str, stream->buffer + stream->skip, end - stream->skip); - ret = str_c_modifyable(stream->line_str); + ret = str_c_modifiable(stream->line_str); } i++; @@ -178,7 +178,7 @@ } if (_stream->w_buffer == NULL) { - i_error("i_stream_next_line() called for unmodifyable stream"); + i_error("i_stream_next_line() called for unmodifiable stream"); return NULL; } @@ -221,7 +221,7 @@ return _stream->buffer + _stream->skip; } -unsigned char *i_stream_get_modifyable_data(struct istream *stream, +unsigned char *i_stream_get_modifiable_data(struct istream *stream, size_t *size) { struct _istream *_stream = stream->real_stream;