Improve string parsing code
authorDenis Kenzior <denkenz@gmail.com>
Mon, 15 Jun 2009 22:41:50 +0000 (17:41 -0500)
committerDenis Kenzior <denkenz@gmail.com>
Tue, 16 Jun 2009 21:38:24 +0000 (16:38 -0500)
commitb648a112f2d2a01b2f7adb7b847ce1731601952d
tree0b145b3538373de109a17cefd9d55b3549b5c72e
parent69372e642ed063d15dec6662984b7699640a4e11
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