Changeset 31811 in webkit for trunk/JavaScriptCore/kjs/lexer.cpp


Ignore:
Timestamp:
Apr 11, 2008, 9:18:23 AM (17 years ago)
Author:
[email protected]
Message:

Tiger build fix. Forward declaring a union didn't work for whatever reason, make the
parameters void*.

  • kjs/grammar.y:
  • kjs/lexer.cpp: (kjsyylex): (KJS::Lexer::lex):
  • kjs/lexer.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/lexer.cpp

    r31809 r31811  
    4949
    5050// a bridge for yacc from the C world to C++
    51 int kjsyylex(YYSTYPE* lvalp, YYLTYPE* llocp, void* lexer)
     51int kjsyylex(void* lvalp, void* llocp, void* lexer)
    5252{
    5353  return static_cast<Lexer*>(lexer)->lex(lvalp, llocp);
     
    142142}
    143143
    144 int Lexer::lex(YYSTYPE* lvalp, YYLTYPE* llocp)
    145 {
     144int Lexer::lex(void* p1, void* p2)
     145{
     146  YYSTYPE* lvalp = static_cast<YYSTYPE*>(p1);
     147  YYLTYPE* llocp = static_cast<YYLTYPE*>(p2);
    146148  int token = 0;
    147149  state = Start;
Note: See TracChangeset for help on using the changeset viewer.