glsl: make _mesa_shader_stage_to_string() available to non-C++ code.
authorPaul Berry <stereotype441@gmail.com>
Tue, 7 Jan 2014 18:58:56 +0000 (10:58 -0800)
committerPaul Berry <stereotype441@gmail.com>
Wed, 8 Jan 2014 15:30:48 +0000 (07:30 -0800)
Reviewed-by: Brian Paul <brianp@vmware.com>
v2: Split from patch "mesa: Store gl_shader_stage enum in gl_shader objects."

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/glsl_parser_extras.h

index 8e0ae3bd7e088f77dc900ba5f5d2bbf2354f9d07..197f337529eac0e0872829dbe8453c24b4b84648 100644 (file)
@@ -423,14 +423,6 @@ extern bool _mesa_glsl_process_extension(const char *name, YYLTYPE *name_locp,
                                         YYLTYPE *behavior_locp,
                                         _mesa_glsl_parse_state *state);
 
-/**
- * Get the textual name of the specified shader stage (which is a
- * gl_shader_stage).
- */
-extern const char *
-_mesa_shader_stage_to_string(unsigned stage);
-
-
 #endif /* __cplusplus */
 
 
@@ -441,6 +433,13 @@ _mesa_shader_stage_to_string(unsigned stage);
 extern "C" {
 #endif
 
+/**
+ * Get the textual name of the specified shader stage (which is a
+ * gl_shader_stage).
+ */
+extern const char *
+_mesa_shader_stage_to_string(unsigned stage);
+
 extern const char *
 _mesa_progshader_enum_to_string(GLenum type);