summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-11-25 16:48:13 -0500
committerTavian Barnes <tavianator@gmail.com>2009-11-25 16:48:13 -0500
commitcc79ac6130baca3179de24004420ce1d0199a140 (patch)
treee680dbecd5536c188e185c33958d3fab533f72b3
parent640917131f4f403f1d84ee2ff4d5a33c08a9c53a (diff)
downloaddimension-cc79ac6130baca3179de24004420ce1d0199a140.tar.xz
Use the dmnsn_ prefix for flex/bison generated sources.
-rw-r--r--dimension/grammar.y2
-rw-r--r--dimension/lexer.l2
2 files changed, 3 insertions, 1 deletions
diff --git a/dimension/grammar.y b/dimension/grammar.y
index 5a271cc..06260d4 100644
--- a/dimension/grammar.y
+++ b/dimension/grammar.y
@@ -188,6 +188,8 @@ yyerror(YYLTYPE *locp, dmnsn_array *astree, dmnsn_token_iterator *iterator,
%error-verbose
%token-table
+%name-prefix "dmnsn_yy"
+
%expect 0
%parse-param {dmnsn_array *astree}
diff --git a/dimension/lexer.l b/dimension/lexer.l
index 942a89f..ac90d8e 100644
--- a/dimension/lexer.l
+++ b/dimension/lexer.l
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
*************************************************************************/
-%option reentrant stack yylineno noyywrap
+%option reentrant stack yylineno noyywrap prefix="dmnsn_yy" outfile="lex.yy.c"
%{
#define YY_DECL static int yylex(const char *filename, dmnsn_array *tokens, \