summaryrefslogtreecommitdiff
path: root/indra/lscript/lscript_compile/indra.l
diff options
context:
space:
mode:
authorKarl Steifvater <qarl@lindenlab.com>2007-11-05 19:51:45 +0000
committerKarl Steifvater <qarl@lindenlab.com>2007-11-05 19:51:45 +0000
commit6fd04521d720a3a4904069d10e8ed970d870ba7f (patch)
treed9db8fb98879be87d35f71719913223eda0959ab /indra/lscript/lscript_compile/indra.l
parent1e7917fa8965ab3691ee868961ea7cc36b6cab5c (diff)
merge -r71488:71881 svn+ssh://svn.lindenlab.com/svn/linden/branches/flex-bison --> release
Diffstat (limited to 'indra/lscript/lscript_compile/indra.l')
-rw-r--r--indra/lscript/lscript_compile/indra.l16
1 files changed, 3 insertions, 13 deletions
diff --git a/indra/lscript/lscript_compile/indra.l b/indra/lscript/lscript_compile/indra.l
index ee3492b071..57aef07e18 100644
--- a/indra/lscript/lscript_compile/indra.l
+++ b/indra/lscript/lscript_compile/indra.l
@@ -651,14 +651,6 @@ int yyerror(const char *fmt, ...)
return 0;
}
-#define LL_MKS_YACC 1
-#if LL_WINDOWS && LL_MKS_YACC
-int yyinput(void)
-{
- return input();
-}
-#endif
-
//#define EMERGENCY_DEBUG_PRINTOUTS
//#define EMIT_CIL_ASSEMBLER
@@ -685,11 +677,9 @@ BOOL lscript_compile(const char* src_filename, const char* dst_filename,
yyout = LLFile::fopen(err_filename, "w");
// Reset the lexer's internal buffering.
-#if LL_DARWIN || LL_LINUX || !LL_MKS_YACC
- yyrestart(yyin);
-#else
- yy_reset();
-#endif
+
+ yyrestart(yyin);
+
b_parse_ok = !yyparse();
if (b_parse_ok)