From 5645770742d21b0a2ae0fe3ecce135933cd9b4fc Mon Sep 17 00:00:00 2001 From: Nanley Chery Date: Mon, 26 Oct 2015 15:22:24 -0700 Subject: mesa/extensions: Prefix global struct and extension type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rename the following types and variables: * struct extension -> struct mesa_extension, like the mesa_format type. * extension_table -> _mesa_extension_table, like the _mesa_extension_override_{enables,disables} structs. Suggested-by: Marek Olšák Suggested-by: Chad Versace Signed-off-by: Nanley Chery Reviewed-by: Chad Versace --- src/mesa/main/extensions.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mesa/main/extensions.h') diff --git a/src/mesa/main/extensions.h b/src/mesa/main/extensions.h index 6092eca36e7..4ea2af13efc 100644 --- a/src/mesa/main/extensions.h +++ b/src/mesa/main/extensions.h @@ -59,7 +59,7 @@ _mesa_get_enabled_extension(struct gl_context *ctx, GLuint index); /** * \brief An element of the \c extension_table. */ -struct extension { +struct mesa_extension { /** Name of extension, such as "GL_ARB_depth_clamp". */ const char *name; @@ -75,7 +75,7 @@ struct extension { /** Year the extension was proposed or approved. Used to sort the * extension string chronologically. */ uint16_t year; -} extern const extension_table[]; +} extern const _mesa_extension_table[]; /* Generate enums for the functions below */ @@ -92,7 +92,7 @@ static inline bool \ _mesa_has_##name_str(const struct gl_context *ctx) \ { \ return ctx->Extensions.driver_cap && (ctx->Version >= \ - extension_table[MESA_EXTENSION_##name_str].version[ctx->API]); \ + _mesa_extension_table[MESA_EXTENSION_##name_str].version[ctx->API]); \ } #include "extensions_table.h" #undef EXT -- cgit v1.2.3