Improve string parsing code
authorDenis Kenzior <denkenz@gmail.com>
Mon, 15 Jun 2009 22:41:50 +0000 (17:41 -0500)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 30 Jun 2009 19:44:05 +0000 (12:44 -0700)
commitf633664e4164c882295779d85cf0b2da8c375406
tree361a413583dfd312aed1a802d877aa7342ea15a2
parent726628df95cfbc82f5481d3123bd23e00376ea36
Improve string parsing code

Currently next_string and next_hexstring functions use a static
buffer in the iterator to store the value.  This value is clobbered
as soon as next_string or next_hexstring is called.  Instead,
we copy the entire line in iter_next and use it as a scratch buffer.
The only limitation is that lines of max 2048 are possible, however
these are limited to around this size by parts of the standard.
gatchat/gatresult.c
gatchat/gatresult.h