OSDN Git Service

mesa: Use quotes on bool driconf options to prevent stdbool.h breakage.
authorEric Anholt <eric@anholt.net>
Thu, 3 Jan 2013 01:02:58 +0000 (17:02 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 19 Apr 2013 17:10:22 +0000 (10:10 -0700)
commitea6cf2b68614e9f8d0db44ee917ce93f9ad1ac2f
tree8d95c5977b88d1b9c8f0116bd5aef8090e9f5a5e
parentcecbfce5ebdd4547e5c6f56b3f669dac3e6df82a
mesa: Use quotes on bool driconf options to prevent stdbool.h breakage.

Since stdbool.h's "true" and "false" are #defines, they got expanded when
used as macro arguments, and that expanded value was stored in the
XML string, producing XML that driconf would then fail to parse.

Currently no drivers included stdbool along with driconf, but I keep
accidentally doing so on intel as we move towards using normal C.

v2: rebase on master.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (v1)
src/gallium/state_trackers/dri/common/dri_screen.c
src/mesa/drivers/dri/common/xmlpool.h
src/mesa/drivers/dri/common/xmlpool/t_options.h
src/mesa/drivers/dri/intel/intel_screen.c
src/mesa/drivers/dri/radeon/radeon_screen.c