configure.ac: GLX cannot work without OpenGL
[mesa.git] / src / glsl / glcpp / glcpp.h
index 7125d325dffdec452fedbc0500284cbec39b5462..8aaa551d128b538f11c59a4727cb869d27e5674d 100644 (file)
 #define GLCPP_H
 
 #include <stdint.h>
+#include <stdbool.h>
 
-#include <talloc.h>
+#include "main/mtypes.h"
+
+#include "../ralloc.h"
 
 #include "program/hash_table.h"
 
@@ -174,7 +177,14 @@ struct glcpp_parser {
        token_node_t *lex_from_node;
        char *output;
        char *info_log;
+       size_t output_length;
+       size_t info_log_length;
        int error;
+       bool has_new_line_number;
+       int new_line_number;
+       bool has_new_source_number;
+       int new_source_number;
+       bool is_gles;
 };
 
 struct gl_extensions;
@@ -189,8 +199,8 @@ void
 glcpp_parser_destroy (glcpp_parser_t *parser);
 
 int
-preprocess(void *talloc_ctx, const char **shader, char **info_log,
-          const struct gl_extensions *extensions, int api);
+glcpp_preprocess(void *ralloc_ctx, const char **shader, char **info_log,
+          const struct gl_extensions *extensions, struct gl_context *g_ctx);
 
 /* Functions for writing to the info log */