glapi: work-around MSVC 65K string length limitation for enums.c
authorBrian Paul <brianp@vmware.com>
Tue, 1 Dec 2015 20:02:05 +0000 (13:02 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 1 Dec 2015 21:28:45 +0000 (14:28 -0700)
commitf391b95105489be58f33991eb49a24d3d509f897
tree1d7c0c0f3514e717d1e3e8fad19997928a4d5dd7
parent148c2f5b175eb0c6355d9f1fc4a60c2f7013535d
glapi: work-around MSVC 65K string length limitation for enums.c

String literals cannot exceed 65535 characters for MSVC.  Instead of
emiting a string, emit an array of characters.

v2: fix indentation and add comment in the gl_enums.py file about this
ugliness.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mapi/glapi/gen/gl_enums.py