Implement "fract" builtin.
[mesa.git] / glsl_parser_extras.h
index 125c675a9212c2c6de4171d74cb8adf972f06e0e..157b9861a3126800f6dda4c6defe8ddea3f56352 100644 (file)
@@ -26,7 +26,6 @@
 #define GLSL_PARSER_EXTRAS_H
 
 #include <cstdlib>
-#include "main/simple_list.h"
 #include "glsl_symbol_table.h"
 
 enum _mesa_glsl_parser_targets {
@@ -38,7 +37,7 @@ enum _mesa_glsl_parser_targets {
 
 struct _mesa_glsl_parse_state {
    void *scanner;
-   struct simple_node translation_unit;
+   exec_list translation_unit;
    glsl_symbol_table *symbols;
 
    unsigned language_version;
@@ -65,6 +64,8 @@ struct _mesa_glsl_parse_state {
    const glsl_type **user_structures;
    unsigned num_user_structures;
 
+   char *info_log;
+
    /**
     * \name Enable bits for GLSL extensions
     */
@@ -95,7 +96,7 @@ extern void _mesa_glsl_error(YYLTYPE *locp, _mesa_glsl_parse_state *state,
  * \sa _mesa_glsl_error
  */
 extern void _mesa_glsl_warning(const YYLTYPE *locp,
-                              const _mesa_glsl_parse_state *state,
+                              _mesa_glsl_parse_state *state,
                               const char *fmt, ...);
 
 extern void _mesa_glsl_lexer_ctor(struct _mesa_glsl_parse_state *state,