summaryrefslogtreecommitdiffstats
path: root/idlc/source/parser.y
diff options
context:
space:
mode:
authorThorsten Behrens <thb@openoffice.org>2010-09-21 20:16:16 +0200
committerThorsten Behrens <thb@openoffice.org>2010-09-21 20:16:16 +0200
commitb12337c8ae206a5ed7fcf14727b0c2627a9a1731 (patch)
tree15946df0a64b59e388814dd12e7b5a79a53a1276 /idlc/source/parser.y
parentKill an empty and unneeded #ifdef. (diff)
downloadcore-b12337c8ae206a5ed7fcf14727b0c2627a9a1731.tar.gz
core-b12337c8ae206a5ed7fcf14727b0c2627a9a1731.zip
Revert "idlc-error-offset.diff: Add character offset for idlc errors"
Breaks bison on OSX. This reverts commit 55c5db853fc0d96179874b4c01dba2774ecf5cd1.
Diffstat (limited to 'idlc/source/parser.y')
-rw-r--r--idlc/source/parser.y7
1 files changed, 1 insertions, 6 deletions
diff --git a/idlc/source/parser.y b/idlc/source/parser.y
index b6c56c60faaf..8da9c7ad63b5 100644
--- a/idlc/source/parser.y
+++ b/idlc/source/parser.y
@@ -103,16 +103,13 @@
#include <algorithm>
#include <vector>
-
-#include <parser.hxx>
using namespace ::rtl;
#define YYDEBUG 1
#define YYERROR_VERBOSE 1
-#define YYLEX_PARAM &yylval, &yylloc
-extern int yylex (YYSTYPE * yylval_param,YYLTYPE * yylloc_param );
+extern int yylex(void);
void yyerror(char const *);
void checkIdentifier(::rtl::OString* id)
@@ -265,7 +262,6 @@ bool includes(AstDeclaration const * type1, AstDeclaration const * type2) {
#pragma warning(disable: 4273 4701 4706)
#endif
%}
-%locations
/*
* Declare the type of values in the grammar
*/
@@ -976,7 +972,6 @@ attribute_get_raises:
rtl::OStringToOUString(
idlc()->getDocumentation(), RTL_TEXTENCODING_UTF8));
$$.exceptions = $2;
- int line = @2.first_line;
}
;