Changeset 31811 in webkit for trunk/JavaScriptCore/kjs


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:
Location:
trunk/JavaScriptCore/kjs
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/grammar.y

    r31809 r31811  
    5050#endif
    5151
    52 extern int kjsyylex(YYSTYPE* lvalp, YYLTYPE* llocp, void* lexer);
     52int kjsyylex(void* lvalp, void* llocp, void* lexer);
    5353int kjsyyerror(const char*);
    5454static inline bool allowAutomaticSemicolon(Lexer&, int);
  • 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;
  • trunk/JavaScriptCore/kjs/lexer.h

    r31809 r31811  
    2828#include <wtf/Vector.h>
    2929
    30 union YYSTYPE;
    31 struct YYLTYPE;
    32 
    3330namespace KJS {
    3431
     
    3936  public:
    4037    void setCode(int startingLineNumber, const UChar *c, unsigned int len);
    41     int lex(YYSTYPE* lvalp, YYLTYPE* llocp);
     38    int lex(void* lvalp, void* llocp);
    4239
    4340    int lineNo() const { return yylineno; }
Note: See TracChangeset for help on using the changeset viewer.