This is a small tidy up and will be useful in the following commit.
Reviewed-by: Witold Baryluk <witold.baryluk@gmail.com>
#define INITIAL_PP_OUTPUT_BUF_SIZE 4048
glcpp_parser_t *
-glcpp_parser_create(const struct gl_extensions *extension_list,
- glcpp_extension_iterator extensions, void *state, gl_api api)
+glcpp_parser_create(struct gl_context *gl_ctx,
+ glcpp_extension_iterator extensions, void *state)
{
glcpp_parser_t *parser;
parser->error = 0;
parser->extensions = extensions;
- parser->extension_list = extension_list;
+ parser->extension_list = &gl_ctx->Extensions;
parser->state = state;
- parser->api = api;
+ parser->api = gl_ctx->API;
parser->version = 0;
parser->version_set = false;
};
glcpp_parser_t *
-glcpp_parser_create(const struct gl_extensions *extension_list,
- glcpp_extension_iterator extensions, void *state, gl_api api);
+glcpp_parser_create(struct gl_context *gl_ctx,
+ glcpp_extension_iterator extensions, void *state);
int
glcpp_parser_parse (glcpp_parser_t *parser);
{
int errors;
glcpp_parser_t *parser =
- glcpp_parser_create(&gl_ctx->Extensions, extensions, state, gl_ctx->API);
+ glcpp_parser_create(gl_ctx, extensions, state);
if (! gl_ctx->Const.DisableGLSLLineContinuations)
*shader = remove_line_continuations(parser, *shader);