[Mesa-dev] [PATCH 1/3] glapi: s/INLINE/inline/ for dispatch.h file

Brian Paul brianp at vmware.com
Mon Nov 28 17:26:33 PST 2011


Patch 2 in this series is the regenerated dispatch.h file.  The 
patch/email is 723KB so I'm omitting it.

-Brian

On 11/28/2011 06:16 PM, Brian Paul wrote:
> ---
>   src/mapi/glapi/gen/gl_table.py |    4 ++--
>   1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/mapi/glapi/gen/gl_table.py b/src/mapi/glapi/gen/gl_table.py
> index 2cbbd97..f6182b6 100644
> --- a/src/mapi/glapi/gen/gl_table.py
> +++ b/src/mapi/glapi/gen/gl_table.py
> @@ -179,11 +179,11 @@ class PrintRemapTable(gl_XML.gl_print_base):
>   			print 'typedef %s (GLAPIENTRYP _glptr_%s)(%s);' % (f.return_type, f.name, arg_string)
>   			print '#define CALL_%s(disp, parameters) \\' % (f.name)
>   			print '    (* GET_%s(disp)) parameters' % (f.name)
> -			print 'static INLINE _glptr_%s GET_%s(struct _glapi_table *disp) {' % (f.name, f.name)
> +			print 'static inline _glptr_%s GET_%s(struct _glapi_table *disp) {' % (f.name, f.name)
>   			print '   return (_glptr_%s) (GET_by_offset(disp, _gloffset_%s));' % (f.name, f.name)
>   			print '}'
>   			print
> -			print 'static INLINE void SET_%s(struct _glapi_table *disp, %s (GLAPIENTRYP fn)(%s)) {' % (f.name, f.return_type, arg_string)
> +			print 'static inline void SET_%s(struct _glapi_table *disp, %s (GLAPIENTRYP fn)(%s)) {' % (f.name, f.return_type, arg_string)
>   			print '   SET_by_offset(disp, _gloffset_%s, fn);' % (f.name)
>   			print '}'
>   			print



More information about the mesa-dev mailing list