mesa: simplify/rename _mesa_init_program_struct()
[mesa.git] / src / mesa / program / program_lexer.l
index a9125171650ff902ad0c955612d0073696721c78..d5dbcf347b37894d197fd3756364115b09572175 100644 (file)
@@ -139,6 +139,13 @@ handle_ident(struct asm_parser_state *state, const char *text, YYSTYPE *lval)
       }                                                                        \
    } while(0);
 
+#define YY_NO_INPUT
+
+/* Yes, this is intentionally doing nothing. We have this line of code
+here only to avoid the compiler complaining about an unput function
+that is defined, but never called. */
+#define YY_USER_INIT while (0) { unput(0); }
+
 #define YY_EXTRA_TYPE struct asm_parser_state *
 
 /* Flex defines a couple of functions with no declarations nor the
@@ -158,6 +165,7 @@ szf    [HR]?
 cc     C?
 sat    (_SAT)?
 
+%option prefix="_mesa_program_lexer_"
 %option bison-bridge bison-locations reentrant noyywrap
 %%