isl_printer_flush: actually clear buffer when called on string printer
commita64d183f30d3486b8a0a805152c5df10a3a38f6f
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 18 Dec 2014 09:54:37 +0000 (18 10:54 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 19 Dec 2014 06:41:47 +0000 (19 07:41 +0100)
tree84e2d136a8d8746652120d2ff751cf55d5bea42a
parent85d738f736b046b1f73942df1e98aed320537739
isl_printer_flush: actually clear buffer when called on string printer

isl_printer_flush is documented as clearing the buffer when called
on a string printer, but ever since it was introduced in 6c91cdb
(add isl_printer_flush, Sat Apr 24 17:43:32 2010 +0200), it would
only reset the number of elements in the buffer, leaving it to the next
write to actually clear the buffer.
Clear the buffer immediately.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_printer.c