| Index: ui/gl/generate_bindings.py
|
| ===================================================================
|
| --- ui/gl/generate_bindings.py (revision 185529)
|
| +++ ui/gl/generate_bindings.py (working copy)
|
| @@ -482,7 +482,7 @@
|
| { 'return_type': 'void',
|
| 'names': ['glShaderSource'],
|
| 'arguments':
|
| - 'GLuint shader, GLsizei count, const char** str, const GLint* length',
|
| + 'GLuint shader, GLsizei count, const char* const* str, const GLint* length',
|
| 'logging_code': """
|
| GL_SERVICE_LOG_CODE_BLOCK({
|
| for (GLsizei ii = 0; ii < count; ++ii) {
|
| @@ -1584,7 +1584,7 @@
|
| file.write('\n')
|
| file.write('%s GL_BINDING_CALL Mock_%s(%s) {\n' %
|
| (func['return_type'], func['names'][0], func['arguments']))
|
| - argument_names = re.sub(r'(const )?[a-zA-Z0-9]+\** ([a-zA-Z0-9]+)', r'\2',
|
| + argument_names = re.sub(r'(const )?[a-zA-Z0-9]+((\s*const\s*)?\*)* ([a-zA-Z0-9]+)', r'\4',
|
| func['arguments'])
|
| if argument_names == 'void':
|
| argument_names = ''
|
|
|