glsl: Change the parser to use the string buffer
authorThomas Helland <thomashelland90@gmail.com>
Fri, 19 May 2017 22:14:52 +0000 (00:14 +0200)
committerThomas Helland <thomashelland90@gmail.com>
Tue, 26 Sep 2017 16:25:00 +0000 (18:25 +0200)
commitcad323f898fef3c8c1d07152919c3d3c88a26955
tree207fc194462738efc410d485e905f223f6a883fa
parent584a2a22ea40cdc030db5b1d70b23dddcc06a556
glsl: Change the parser to use the string buffer

Signed-off-by: Thomas Helland <thomashelland90@gmail.com>
Tested-by: Dieter Nützel <Dieter at nuetzel-hh.de>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
V2: Pointed out by Timothy
   - Fix pp.c reralloc size issue and comment

V3 - Use vprintf instead of printf where we should
   - Fixes failing make-check tests

V4 - Use buffer_append_char in a couple places
   - Use append_char in even more places
src/compiler/glsl/glcpp/glcpp-parse.y
src/compiler/glsl/glcpp/glcpp.h
src/compiler/glsl/glcpp/pp.c