glcpp: Factor out a tiny bit of repeated code.
authorCarl Worth <cworth@cworth.org>
Wed, 28 Nov 2012 20:03:50 +0000 (12:03 -0800)
committerCarl Worth <cworth@cworth.org>
Thu, 29 Nov 2012 21:03:01 +0000 (13:03 -0800)
commitea34ac499d46407d8d90baa4a8fd9082ba6b3ea7
tree25f09edbbfe989ab3878b1802b7ff8b00b17ae4a
parent907a10378e4c63686abe0739634b30615018ccd1
glcpp: Factor out a tiny bit of repeated code.

This function is getting a little long too read. Simplify it by pulling
up one assignment from every condition.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/glsl/glcpp/glcpp-parse.y