mesa/glsl: rename preprocess to glcpp_preprocess

This symbol with dricore escapes into the namespace, its too generic,
we should prefix it with something just to be nice.

Should be applied to stable + 9.0

Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Dave Airlie
2012-09-14 10:13:01 +10:00
committed by Dave Airlie
parent 53d46bc787
commit 88b0790b1a
7 changed files with 7 additions and 7 deletions

View File

@@ -111,7 +111,7 @@ main (int argc, char *argv[])
if (shader == NULL) if (shader == NULL)
return 1; return 1;
ret = preprocess(ctx, &shader, &info_log, NULL, API_OPENGL); ret = glcpp_preprocess(ctx, &shader, &info_log, NULL, API_OPENGL);
printf("%s", shader); printf("%s", shader);
fprintf(stderr, "%s", info_log); fprintf(stderr, "%s", info_log);

View File

@@ -196,7 +196,7 @@ void
glcpp_parser_destroy (glcpp_parser_t *parser); glcpp_parser_destroy (glcpp_parser_t *parser);
int int
preprocess(void *ralloc_ctx, const char **shader, char **info_log, glcpp_preprocess(void *ralloc_ctx, const char **shader, char **info_log,
const struct gl_extensions *extensions, int api); const struct gl_extensions *extensions, int api);
/* Functions for writing to the info log */ /* Functions for writing to the info log */

View File

@@ -150,7 +150,7 @@ remove_line_continuations(glcpp_parser_t *ctx, const char *shader)
} }
int int
preprocess(void *ralloc_ctx, const char **shader, char **info_log, glcpp_preprocess(void *ralloc_ctx, const char **shader, char **info_log,
const struct gl_extensions *extensions, int api) const struct gl_extensions *extensions, int api)
{ {
int errors; int errors;

View File

@@ -296,7 +296,7 @@ _mesa_glsl_shader_target_name(enum _mesa_glsl_parser_targets target);
extern "C" { extern "C" {
#endif #endif
extern int preprocess(void *ctx, const char **shader, char **info_log, extern int glcpp_preprocess(void *ctx, const char **shader, char **info_log,
const struct gl_extensions *extensions, int api); const struct gl_extensions *extensions, int api);
extern void _mesa_destroy_shader_compiler(void); extern void _mesa_destroy_shader_compiler(void);

View File

@@ -144,7 +144,7 @@ compile_shader(struct gl_context *ctx, struct gl_shader *shader)
new(shader) _mesa_glsl_parse_state(ctx, shader->Type, shader); new(shader) _mesa_glsl_parse_state(ctx, shader->Type, shader);
const char *source = shader->Source; const char *source = shader->Source;
state->error = preprocess(state, &source, &state->info_log, state->error = glcpp_preprocess(state, &source, &state->info_log,
state->extensions, ctx->API) != 0; state->extensions, ctx->API) != 0;
if (!state->error) { if (!state->error) {

View File

@@ -216,7 +216,7 @@ int test_optpass(int argc, char **argv)
} else { } else {
shader->Source = input.c_str(); shader->Source = input.c_str();
const char *source = shader->Source; const char *source = shader->Source;
state->error = preprocess(state, &source, &state->info_log, state->error = glcpp_preprocess(state, &source, &state->info_log,
state->extensions, ctx->API) != 0; state->extensions, ctx->API) != 0;
if (!state->error) { if (!state->error) {

View File

@@ -3060,7 +3060,7 @@ _mesa_glsl_compile_shader(struct gl_context *ctx, struct gl_shader *shader)
return; return;
} }
state->error = preprocess(state, &source, &state->info_log, state->error = glcpp_preprocess(state, &source, &state->info_log,
&ctx->Extensions, ctx->API); &ctx->Extensions, ctx->API);
if (ctx->Shader.Flags & GLSL_DUMP) { if (ctx->Shader.Flags & GLSL_DUMP) {